How to solve peerinvalid errors in npm install?

slacktracer picture slacktracer · May 22, 2014 · Viewed 15k times · Source

I'm trying to follow the steps to contribute to PhysicsJS (https://github.com/wellcaffeinated/PhysicsJS#contributing) and having the following error during npm install.

npm ERR! peerinvalid The package grunt-contrib-jasmine does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants grunt-contrib-jasmine@~0.5.3
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/slacktracer/Dropbox/dev/PhysicsJS
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!     /home/slacktracer/Dropbox/dev/PhysicsJS/npm-debug.log
npm ERR! not ok code 0

Any suggestions on how to solve it?

Answer

mscdex picture mscdex · May 22, 2014

It looks like PhysicsJS's package.json needs to be updated so that "grunt-contrib-jasmine": "0.4.x", is "grunt-contrib-jasmine": "0.5.x", in the devDependencies.