node.js - NPM install PhantomJS without Downloading -


ok, can't provide many details, since information belongs company working , can't upload our server-files , on. use maven install npm , node. in addition use shrinkwrap, tar files at. when run maven install locally works fine.

however when backend-team tries deploy on server phantomjs causing problems. though have phantomjs inside shrinkwrap-folder gets ignored , server downloads phantomjs https://bitbucket.org/ariya/phantomjs/downloads

sometimes download fails, works. when works next problem occurs:

[info] [info] [16:40:21] starting karma testrunner [info] [info] phantomjs 1.9.8 (linux 0.0.0) error [info] [info]   typeerror: 'undefined' not object  info] [info]   typeerror: 'undefined' not object [info] [info]  [info] [info] phantomjs 1.9.8 (linux 0.0.0): executed 0 of 0 error (0.427 secs / 0 secs) 

it makes no sense. when running locally tests succeed, no errors.

so question be, how can stop nodejs downloading phantomjs , install local file upload server?


Comments