[英]npm install -g generator-angular gives error (requires a peer of)
Learning Node and trying to install generator-angular
学习节点并尝试安装
generator-angular
running npm install -g generator-angular
运行
npm install -g generator-angular
WARN EPEERINVALID generator-angular@0.14.0 requires a peer of generator-karma@>=0.9.0 but none was installed.
WARN EPEERINVALID generator-angular@0.14.0需要generator-karma的同伴@> = 0.9.0但没有安装。
What does it means and how can I install it? 它意味着什么,我该如何安装它?
You should try to install
all the components in the same time. 您应该尝试在同一时间
install
所有组件。
npm install -g grunt-cli bower yo generator-karma generator-angular
worked for me. 为我工作。
就我而言,解决方案是在一行中安装
npm install -g yo generator-karma generator-angular
npm@3
no longer install peerDependencies automatically. npm@3
不再自动安装peerDependencies。 This warning is shown as a result of this change. 此警告显示为此更改的结果。
If you are not running the tests you do not have to install karma
. 如果您没有运行测试,则不必安装
karma
。
If you are, npm install karma>=0.9.0
manually. 如果你是,
npm install karma>=0.9.0
手动npm install karma>=0.9.0
。
https://docs.npmjs.com/files/package.json#peerdependencies https://docs.npmjs.com/files/package.json#peerdependencies
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.