我该如何解决npm UNMET PEER DEPENDENCY警告?
我在Windows 10上,使用Node 5.6.0和npm 3.6.0。我正在尝试将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.
如何解决此问题以安装AngularJS材质和MDI?
回答:
npm不再安装对等项依赖项,因此您需要手动安装它们,只需npm install
在所需的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 install angular angular-animate angular-aria angular-material
angular-messages mdi
以上是 我该如何解决npm UNMET PEER DEPENDENCY警告? 的全部内容, 来源链接: utcz.com/qa/415877.html