简体   繁体   中英

Error while installing ng-bootstrap in angular v-13

Throwing the below error while trying to install ng-bootstrap in angular version 13

Error: 在此处输入图像描述

These are the other details respective to the node, npm and os

Angular CLI: 13.0.2, Node: 16.13.0, Package Manager: npm 8.1.0, OS: darwin x64

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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