使用npm进行发电机角度安装时出现问题

时间:2015-12-01 13:30:57

标签: angularjs npm

我运行了那些命令

AT07684S@ZE0PW0NM /d/AAA_Dev2015
$ npm install -g generator-karma --save
npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
C:\Users\AT07684S\AppData\Roaming\npm
└── generator-karma@1.0.1

AT07684S@ZE0PW0NM /d/AAA_Dev2015
$ npm install -g generator-angular --save
npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated lodash@2.1.0: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
C:\Users\AT07684S\AppData\Roaming\npm
├── generator-angular@0.14.0
└── UNMET PEER DEPENDENCY generator-karma@>=0.9.0

npm WARN EPEERINVALID generator-angular@0.14.0 requires a peer of generator-karma@>=0.9.0 but none was install
ed.

正如你所看到我首先安装了generator-karma 1.0.1,但是当我安装generator-angular时它失败了,据说是因为没有安装generator-karma&gt; = 0.9.0。

我该怎么办?

由于

1 个答案:

答案 0 :(得分:0)

此处npm install -g generator-angular gives error (requires a peer of)UNMET PEER DEPENDENCY generator-karma@>=0.9.0已经回答了类似的问题。聪明的人建议在一行中安装所有内容,所以试试这个:

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

对我有用,它也应该对你有帮助。