gpt4 book ai didi

yeoman - npm 错误 : peerinvalid The package generator-karma does not satisfy its siblings peerDependencies requirements

转载 作者:行者123 更新时间:2023-12-03 23:59:55 25 4
gpt4 key购买 nike

当我跑

 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 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 ?

最佳答案

新版本的 yeoman 为您安装了 bower 和 grunt(因此您的 npm 线上不再需要它们)。因此,为了安全起见,请删除您拥有的内容:

npm remove -g yo bower grunt-cli



然后试试这个安装

npm install -g yo



有些人仍然遇到您遇到的问题,这是问题所在,如果上述方法不能解决您的问题,请在评论中尝试许多不同的方法: 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com