简体   繁体   English

尝试将bootstrap-ui添加到我的角度时出现“ UNMET PEER DEPENDENCY”

[英]“UNMET PEER DEPENDENCY” when trying to add bootstrap-ui to my angular

I am trying to install angular-ui 我正在尝试安装angular-ui

I have tried all the commands from the tutorials, including: 我已经尝试了教程中的所有命令,包括:

npm install angular-bootstrap

This returns the arror 这将返回错误

+-- UNMET PEER DEPENDENCY angular@>=1.5

I checked my angular version and it is 1.4, so I am assuming that is the reason ? 我检查了我的角度版本,它是1.4,所以我假设这是原因吗?

I read a tutorial about migrating to 1.5 but it simply says that I should copy the new link to angular.js 1.5, which I did. 我读了一个有关迁移到1.5的教程,但它只是说我应该将新链接复制到angular.js 1.5,我已经这样做了。 Still no luck. 仍然没有运气。

UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met. 当不符合package.json文件中指定的一个或多个模块的依赖性时,将引发UNMET PEER DEPENDENCY错误。

You need to install peer dependencies manually, just do an npm install on the needed deps, and then try to install the main one again. 您需要手动安装对等依赖项,只需在所需的deps上进行npm安装,然后尝试再次安装主要的对等项。

npm install -g
npm install angular-bootstrap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM