npm ERR:peerinvalid程序包generator-karma不满足其同级peerDependencies要求 [英] npm ERR: peerinvalid The package generator-karma does not satisfy its siblings peerDependencies requirements

查看:100
本文介绍了npm ERR:peerinvalid程序包generator-karma不满足其同级peerDependencies要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行

 npm install -g yo grunt-cli bower

在我的终端上,我收到以下依赖项错误:

at my terminal I get the following dependency error:

npm ERR! peerinvalid The package generator-karma does not satisfy its siblings'
peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.5.0 wants generator-karma@~0.5.0
npm ERR! System Darwin 12.4.1
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo" "grunt-cli" "bower"
npm ERR! cwd /Users/ryanwieghard/code/angin/indie-cinema-tools
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/ryanwieghard/code/angin/indie-cinema-tools/npm-debug.log
npm ERR! not ok code 0

我不确定该如何解决。有没有办法手动安装 generator-karma@~0.5.0 吗?

I am not sure how to resolve this. Is there a way to manually install generator-karma@~0.5.0 ?

推荐答案

yeoman的新版本为您安装了凉亭和咕unt声(因此您不再需要在npm行上使用它们了)。因此,为了安全起见,请删除您拥有的东西:

The new version of yeoman installs bower and grunt for you (so you don't need those on your npm line anymore). So, just to be safe remove what you have:


npm remove -g yo bower grunt-cli

npm remove -g yo bower grunt-cli

然后尝试安装


npm install -g yo

npm install -g yo

有些人仍然遇到您遇到的问题,这是问题所在,如果以上内容不能解决,请在注释中尝试多种不同的方法无法解决您的问题: https://github.com/yeoman/generator-angular/issues/220

Some people still experience the problem you're having though, here's the issue and in comments are a number of different things to try if the above doesn't resolve your issue: https://github.com/yeoman/generator-angular/issues/220

这篇关于npm ERR:peerinvalid程序包generator-karma不满足其同级peerDependencies要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆