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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With