yo发电机的安装问题

时间:2015-06-28 11:25:34

标签: node.js osx-yosemite yeoman-generator-angular

尝试安装yo角度模块,如下所示:

sudo npm install -g yo

我收到此错误:

! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! node v0.12.5
npm ERR! npm  v2.11.2
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.11.1 wants generator-karma@>=0.9.0
npm ERR! peerinvalid Peer generator-angular-js@1.0.1 wants generator-karma@~0.6.0

避免此错误的方法是什么?

1 个答案:

答案 0 :(得分:1)

确保为yo angular安装所有依赖项。尝试跑步:

npm install -g grunt-cli bower yo generator-karma generator-angular