Throwing the below error while trying to install ng-bootstrap in angular version 13
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.