Cannot install npm packages due to incorrect package version definition
carlos opened this issue · 4 comments
carlos commented
When running npm install
over a fresh checkout, you get the following error:
> phantomjs@1.9.7-3 install /Users/carlos/Code/angular-timeago/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
> node install.js
Download already available at /var/folders/rg/jymh52ld7ygd5kt6xqr88wn00000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip
Extracting zip contents
Copying extracted folder /var/folders/rg/jymh52ld7ygd5kt6xqr88wn00000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1397589841766/phantomjs-1.9.7-macosx -> /Users/carlos/Code/angular-timeago/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /Users/carlos/Code/angular-timeago/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs
npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-karma@0.6.2 wants karma@~0.10.0
npm ERR! peerinvalid Peer karma-chrome-launcher@0.1.3 wants karma@>=0.9.3
npm ERR! peerinvalid Peer karma-mocha@0.1.3 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-ng-html2js-preprocessor@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-firefox-launcher@0.1.3 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-html2js-preprocessor@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-jasmine@0.1.5 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-requirejs@0.2.1 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-script-launcher@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-coffee-preprocessor@0.2.1 wants karma@>=0.11.14
npm ERR! peerinvalid Peer karma-phantomjs-launcher@0.1.4 wants karma@>=0.9
npm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.26/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/carlos/Code/angular-timeago
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/carlos/Code/angular-timeago/npm-debug.log
npm ERR! not ok code 0
Some of the libraries used by you implementation required different versions of karma.
yaru22 commented
I published version 0.1.1. Could you try that and let me know if it works or not?
carlos commented
Same issue. I believe you can reproduce the problem by deleting the node_modules
folder and running npm install
.
yaru22 commented
Updated dependencies. It should be working now. I just tested with the clean repo. Thanks for reporting the problem.
carlos commented
That seems to solve the issue. Thanks!