peerinvalid角度火灾发生器错误

时间:2014-08-18 21:40:22

标签: angularjs gruntjs npm bower

当我运行npm install -g grunt-cli时,我收到以下错误

npm ERR! peerinvalid The package generator-angular does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angularfire@0.0.6 wants generator-angular@~0.7.1

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli"
npm ERR! cwd /Users/muhammadatif/Documents/tutorials/angular-101
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users//Documents/tutorials/angular-101/npm-debug.log
npm ERR! not ok code 0

1 个答案:

答案 0 :(得分:1)

似乎这是generator-angularfire未针对较新版本的generator-angular进行测试的问题。您可以在official blog post中阅读有关NPM中Peer Dependencies的更多信息。

对我有什么帮助:

npm uninstall -g generator-angular
npm uninstall -g generator-karma

然后再次运行npm install -g generator-angularfire(或在您的情况下:npm install -g grunt-cli)应解决问题,因为它将安装上述2个生成器的旧版兼容版本。