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

npm install error on Travis #209

Closed
cvrebert opened this issue Aug 4, 2014 · 3 comments
Closed

npm install error on Travis #209

cvrebert opened this issue Aug 4, 2014 · 3 comments

Comments

@cvrebert
Copy link

cvrebert commented Aug 4, 2014

Sometimes, when trying to install a project that indirectly depends on phantomjs on Travis, I'm seeing this error:

$ nvm use 0.10
Now using node v0.10.29
$ node --version
v0.10.29
$ npm --version
1.4.14
[...]
$ npm install
[...]
> phantomjs@1.9.7-15 install /home/travis/build/twbs/bootstrap/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs
> node install.js
Writing location.js file
PhantomJS is already installed at /usr/local/phantomjs/bin/phantomjs.
npm ERR! cb() never called!
npm ERR! not ok code 0

which causes the build to fail 😢
Full log: https://travis-ci.org/twbs/bootstrap/jobs/31650361

@nicks
Copy link
Contributor

nicks commented Aug 4, 2014

i don't think that error is coming from phantomjs? it looks like you have some odd npm customization scripts that are actually emitting the error, e.g., uncached-npm-install.sh

@cvrebert
Copy link
Author

cvrebert commented Aug 4, 2014

All that script does is install using an npm shrinkwrap file: https://github.com/twbs/bootstrap/blob/master/test-infra/uncached-npm-install.sh

@nicks
Copy link
Contributor

nicks commented Aug 4, 2014

ya, a quick google search says that the "cb() never called" error is an internal npm error; you should probably file a bug with them

The PhantomJS is already installed at message indicates that the phantomjs installer exited correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants