Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR: peerinvalid The package generator-karma does not satisfy its siblings peerDependencies requirements

Tags:

bower

yeoman

When I run

 npm install -g yo grunt-cli bower

at my terminal I get the following dependency error:

npm ERR! peerinvalid The package generator-karma does not satisfy its siblings'
peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants generator-karma@~0.5.0
npm ERR! System Darwin 12.4.1
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo" "grunt-cli" "bower"
npm ERR! cwd /Users/ryanwieghard/code/angin/indie-cinema-tools
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/ryanwieghard/code/angin/indie-cinema-tools/npm-debug.log
npm ERR! not ok code 0

I am not sure how to resolve this. Is there a way to manually install generator-karma@~0.5.0 ?

like image 798
Thalatta Avatar asked Oct 18 '13 16:10

Thalatta


1 Answers

The new version of yeoman installs bower and grunt for you (so you don't need those on your npm line anymore). So, just to be safe remove what you have:

npm remove -g yo bower grunt-cli

And then try this install

npm install -g yo

Some people still experience the problem you're having though, here's the issue and in comments are a number of different things to try if the above doesn't resolve your issue: https://github.com/yeoman/generator-angular/issues/220

like image 93
KayakDave Avatar answered Sep 23 '22 05:09

KayakDave