Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
instructions for manual phantomjs if necessary
Browse files Browse the repository at this point in the history
As reported in #675, manual install of phantomjs may be necessary in
caseswhere it is not installed properly by the repository-wide npm
install process. Add instructions to README for cases where this
happens.
  • Loading branch information
laurelnaiad committed Apr 24, 2015
1 parent ce02eae commit 6001e7f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README-JavaScript.md
Expand Up @@ -190,6 +190,32 @@ The reasons for this are documented in https://support.saucelabs.com/entries/274

Please see [Node.js and npm Tips for Samplestack Development](https://github.com/marklogic/marklogic-samplestack/wiki/Node.js-and-npm-Tips-for-Samplestack-Development).

## OSX Workaround for Improperly Installed `phantomjs` Module

In some cases, the following may be seen when unit tests are run in the terminal:

```
...
[18:14:41] Starting 'unit'...
Unit Tests:
/path/to/marklogic-samplestack/node_modules/phantomjs/lib/location.js:1
(function (exports, require, module, __filename, __dirname) {
^
TypeError: Bad argument
at ChildProcess.spawn (child_process.js:936:24)
at exports.spawn (child_process.js:736:9)
...
[18:14:43] Error in plugin 'gulp-mocha-phantomjs'
test failed
```

This error occurs if the `phantomjs` library did not install properly. To work around this, the developer may manually install `phantomjs` (from the marklogic-samplestack repostiory root directory):

```
> $ npm install phantomjs
```

## OSX Workaround for Watch Mode

In general your "watch" process will be faster on Mac/OSX computers if you raise the limit of the number
Expand Down

0 comments on commit 6001e7f

Please sign in to comment.