当我运行时
npm install -g yo grunt-cli bower
在我的终端上,我收到以下依赖项错误:
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings'
peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] 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
? 最佳答案
yeoman的新版本为您安装了 bower 和咕unt声(因此您不再需要在npm行上使用它们了)。因此,为了安全起见,请删除您拥有的东西:
然后尝试安装
某些人仍然遇到您遇到的问题,这是问题所在,如果以上内容不能解决您的问题,请在注释中尝试多种不同的方法:https://github.com/yeoman/generator-angular/issues/220
关于yeoman - npm错误: peerinvalid The package generator-karma does not satisfy its siblings peerDependencies requirements,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19455019/