angularjs – 如何解决npm因素对立

前端之家收集整理的这篇文章主要介绍了angularjs – 如何解决npm因素对立前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在Windows 10,节点版本5.6.0和Npm版本3.6.0。尝试安装角材料和mdi到我的工作文件夹。 npm install angular-material mdi给我以下错误消息:

+– angular@1.5.0

+– UNMET PEER DEPENDENCY angular-animate@^1.5.0

+– UNMET PEER DEPENDENCY angular-aria@^1.5.0

+– angular-material@1.0.6

+– UNMET PEER DEPENDENCY angular-messages@^1.5.0 `– mdi@1.4.57

npm WARN enoent ENOENT: no such file or directory,open
‘C:\Users\xxxxx\Desktop\ngClassifieds\package.json’

npm WARN angular-material@1.0.6 requires a peer of
angular-animate@^1.5.0 but none was installed.

npm WARN angular-material@1.0.6 requires a peer of angular-aria@^1.5.0
but none was installed.

npm WARN angular-material@1.0.6 requires a peer of
angular-messages@^1.5.0 but none was installed.

如何解决这个问题以获得角材料和mdi安装?

npm不再安装对等依赖项,因此您需要手动安装它们,只需在所需的deps上执行npm安装,然后尝试重新安装主机。

回复评论

它在这个消息,它说,你说,你缺少哪个deps

UNMET PEER DEPENDENCY angular-animate@^1.5.0 +-- 
UNMET PEER DEPENDENCY angular-aria@^1.5.0 +-- angular-material@1.0.6 +
UNMET PEER DEPENDENCY angular-messages@^1.5.0 `-- mdi@1.4.57`

所以你需要npm安装角度角动画角度咏叹调角材料角度消息mdi

原文链接:https://www.f2er.com/angularjs/146357.html

猜你在找的Angularjs相关文章