我正在尝试运行generator-angular
yeoman 生成器。但是在安装并运行它之后,我得到了以下错误
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 karma-ng-html2js-preprocessor@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-ng-scenario@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer grunt-karma@0.6.2 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
返回
temp@0.0.0 /Users/harrymoreno/programming/js/temp
└── karma@0.12.0 peer invalid
npm ERR! peer invalid: karma@0.12.0 /Users/harrymoreno/programming/js/temp/node_modules/karma
npm ERR! not ok code 0
所以我想我有业力版本 0.12.0 但是 grunt-karma 想要 0.10.0 ?? 我还在本地将 karma 安装到我的临时目录中,看看这是否有所作为。它没有。