Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing ng-bootstrap in angular 11

I have installed version (11) of angular cli and I am getting below error message when installing ng-bootstrap. can ay one please help me how to resolve this?

SeshagiiRaosMBP:trx-mngmt-ui-10 Munuma$ ng add @ng-bootstrap/ng-bootstrap
Unable to find compatible package.  Using 'latest'.
Package has unmet peer dependencies. Adding the package may not succeed.
Installing packages for tooling via npm.
An unhandled exception occurred: npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@"~11.0.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"10.0.14" from @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~10.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/Munuma/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Munuma/.npm/_logs/2020-12-29T14_49_36_751Z-debug.log
Package install failed, see above.
See "/private/var/folders/m1/g43nd64x54qdm_94_wk1sc7m0000gn/T/ng-fL8ZaZ/angular-errors.log" for further details.
like image 246
GIRI Avatar asked Dec 30 '22 18:12

GIRI


1 Answers

Run npm i @ng-bootstrap/ng-bootstrap --legacy-peer-deps that solved the problem

like image 199
Nivaldo Quiñones Avatar answered Mar 20 '23 22:03

Nivaldo Quiñones