[英]Error while installing ng-bootstrap in angular v-13
Throwing the below error while trying to install ng-bootstrap in angular version 13尝试在 angular 版本 13 中安装 ng-bootstrap 时引发以下错误
These are the other details respective to the node, npm and os这些是与节点 npm 和 os 相关的其他详细信息
Angular CLI: 13.0.2, Node: 16.13.0, Package Manager: npm 8.1.0, OS: darwin x64 Angular CLI:13.0.2,节点:16.13.0,Package 管理器:npm 8.1.0,操作系统:darwin x641.0
Found a similar question here Error when installing ng add @ng-bootstrap/ng-bootstrap and tried to use the solution given in the answers, but doesn't work for me. 在安装 ng add @ng-bootstrap/ng-bootstrap并尝试使用答案中给出的解决方案时在此处找到了一个类似的问题,但对我不起作用。
Much appreciate any help with this problem.非常感谢您对这个问题的任何帮助。
Try this尝试这个
ng add @ng-bootstrap/ng-bootstrap --legacy-peer-deps
This fixed the issue for me这为我解决了这个问题
npm config set legacy-peer-deps true
which means it allows installing legacy packages.这意味着它允许安装旧包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.