我正试图通过你来实现jhipster项目。但是当我运行它时,会发生一个奇怪的错误:The package karma does not satisfy its siblings' peerDependencies requirements!
我完全卸载了nodejs并再次安装它,但仍然是同样的错误。
当我搜索时,会有一些解决方案建议,例如this或this。
我有64位win7, node -v v0.10.26 npm -v 1.4.3
error peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements!
error peerinvalid Peer karma-script-launcher@0.1.0 wants karma@>=0.9
error peerinvalid Peer karma-chrome-launcher@0.1.2 wants karma@>=0.9.3
error peerinvalid Peer karma-html2js-preprocessor@0.1.0 wants karma@>=0.9
error peerinvalid Peer karma-jasmine@0.1.5 wants karma@>=0.9
error peerinvalid Peer karma-requirejs@0.2.1 wants karma@>=0.9
error peerinvalid Peer karma-phantomjs-launcher@0.1.2 wants karma@>=0.9
error peerinvalid Peer grunt-karma@0.7.3 wants karma@~0.12.0
error System Windows_NT 6.1.7601
error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
error cwd C:\Users\EXT0182703\LuckyShoot
error node -v v0.10.26
error npm -v 1.4.3
error code EPEERINVALID
verbose exit [ 1, true ]
答案 0 :(得分:5)
我有一个类似的问题,我在终端做了这个:
rm -rf /usr/local/lib/node_modules/karma-*
然后更新package.json
:
"devDependencies": {
"karma": "0.12.0",
...
}
然后重新安装
sudo npm install karma
它对我有用
答案 1 :(得分:2)
我们昨天发布了修复此问题的版本0.11。 试试吧。 http://jhipster.github.io/2014/02/19/jhipster-release-0.11.0.html