-
Notifications
You must be signed in to change notification settings - Fork 438
npm install fails on windows #284
Description
Our current build process (on windows) is failing on version 1.9.15. The last successful build used 1.9.13. We get the following stack trace:
phantomjs@1.9.15 install d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs
node install.js
Download already available at C:\Users\tempuser\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip
Extracting zip contents
Phantom installation failed [Error: Can't move source into dest if dest is in source.] Error: Can't move source into dest if dest is in source.
at mv (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\fs-extra\lib\move.js:22:15)
at fs.move (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\fs-extra\lib\index.js:51:3)
at onBoundPromise (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\kew\kew.js:703:10)
at Object.nfcall (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\kew\kew.js:685:44)
at Promise._successFn (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\install.js:341:20)
at Promise._call (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\kew\kew.js:373:13)
at Promise._withInput (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\kew\kew.js:333:25)
at Promise.resolve (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\kew\kew.js:105:27)
at resolver (d:\builds\jenkins\workspace\js\unit-tests\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\node_modules\kew\kew.js:409:17)
at CB (d:\builds\jenkins\workspace\js\unit-tests\node_modules\rimraf\rimraf.js:68:5)
npm ERR! phantomjs@1.9.15 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.15 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--loglevel" "warn"
npm ERR! cwd d:\builds\jenkins\workspace\js\unit-tests
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npmBuild step 'Conditional steps (multiple)' marked build as failure
Our package.json includes the following dependencies:
{
"karma": "^0.12.1",
"karma-jasmine": "^0.2.2",
"karma-requirejs": "^0.2.1",
"karma-phantomjs-launcher": "^0.1.2",
"karma-chrome-launcher": "^0.1.3",
"karma-coverage": "^0.2.1",
"karma-ng-html2js-preprocessor": "^0.1.0",
"karma-junit-reporter": "^0.2.2",
"rimraf": "^2.2.8"
}
Adding 1.9.13 to the dependencies fixes our build