发电机业力不能满足它的兄弟姐妹“peerDependencies要求 [英] generator-karma does not satisfy its siblings' peerDependencies requirements

查看:140
本文介绍了发电机业力不能满足它的兄弟姐妹“peerDependencies要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同样臭名昭著的误差


npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.7.1 wants generator-karma@~0.6.0
npm ERR! peerinvalid Peer generator-angular-ui-router@0.5.3 wants generator-karma@~0.5.0

npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "generator-angular"
npm ERR! cwd /Users/dmitrizaitsev/Dropbox/Priv/APP/my-yo-project
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code EPEERINVALID

来自各种安装包,例如为

comes from installation various packages, e.g. for

npm update -g yo

唯一的发现建议卸载发电机 - 卡玛于事无补 - 这重新安装回

The only found advice to uninstall generator-karma does not help - it re-installs back.

为什么正好与任何更好的解释工作的解决方案?

Any better explanation of why it happens and working solution?

推荐答案

您需要更新你所有的全球的装机NPM包。从您的控制台运行此命令:

You need to update all of your globally installed NPM packages. Run this command from your console:

npm update -g

此命令将列出更新到最新版本(由标签配置中指定)的所有包。

This command will update all the packages listed to the latest version (specified by the tag config).

这也将安装缺少的包。

在您指定-g标志,该命令将更新全球范围内安装的软件包。如果没有指定包名,在指定的位置所有的包(全局或局部)将被更新。

When you specify the -g flag, this command will update globally installed packages. If no package name is specified, all packages in the specified location (global or local) will be updated.

这篇关于发电机业力不能满足它的兄弟姐妹“peerDependencies要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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