2014-03-12 73 views
5

我試圖通過喲jiganter項目generete。但是當我運行它時,發生了一個奇怪的錯誤:The package karma does not satisfy its siblings' peerDependencies requirements! 我完全卸載了nodejs並重新安裝了它,但仍出現同樣的錯誤。 當我搜索時,有一些解決方案建議,如thisthisJhispter安裝:包karma不滿足其兄弟姐妹的peerDependencies要求

我有64位的win7, 節點-v v0.10.26 NPM -v 1.4.3

error peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements! 
error peerinvalid Peer [email protected] wants [email protected]>=0.9 
error peerinvalid Peer [email protected] wants [email protected]>=0.9.3 
error peerinvalid Peer [email protected] wants [email protected]>=0.9 
error peerinvalid Peer [email protected] wants [email protected]>=0.9 
error peerinvalid Peer [email protected] wants [email protected]>=0.9 
error peerinvalid Peer [email protected] wants [email protected]>=0.9 
error peerinvalid Peer [email protected] wants [email protected]~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

與AngularJS教程收到類似的錯誤。 –

回答

5

我也有類似的問題,我在終端做:

rm -rf /usr/local/lib/node_modules/karma-*

然後更新了package.json

"devDependencies": { 
    "karma": "0.12.0", 
    ... 
    } 

然後重新安裝

sudo npm install karma

它爲我