Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running yeoman angular generator, karma dependency error

I'm trying to run the generator-angular yeoman generator. But after installing and running it I get the following error

npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants karma@>=0.9
npm ERR! peerinvalid Peer [email protected] wants karma@>=0.9
npm ERR! peerinvalid Peer [email protected] wants karma@~0.10.0

npm ERR! System Darwin 13.1.0
npm ERR! command "/Users/harrymoreno/.nvm/v0.11.11/bin/node" "/Users/harrymoreno/.nvm/v0.11.11/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /Users/harrymoreno/programming/js/temp
npm ERR! node -v v0.11.11
npm ERR! npm -v 1.3.25
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/harrymoreno/programming/js/temp/npm-debug.log
npm ERR! not ok code 0

npm list karma returns

[email protected] /Users/harrymoreno/programming/js/temp
└── [email protected]  peer invalid

npm ERR! peer invalid: [email protected] /Users/harrymoreno/programming/js/temp/node_modules/karma
npm ERR! not ok code 0

so I think I have karma version 0.12.0 But grunt-karma wants 0.10.0 ?? I also install karma locally to my temp dir to see if that made a difference. It didn't.

like image 566
Harry Moreno Avatar asked Mar 11 '14 07:03

Harry Moreno


1 Answers

The problem is [email protected] and [email protected] don't go hand in hand. The best way to deal with this problem is uninstall karma V 12 and install v 0.11.14 and [email protected]

$ npm uninstall karma grunt-karma

$ npm install [email protected] [email protected]

this should fix your problem.

like image 74
demesne Avatar answered Nov 15 '22 08:11

demesne