i tried everything updated node angular restarted pc did all possible stuff but still get this error and i dont know why.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @ng-bootstrap/[email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~13.1.1" from the root project
npm ERR! peer @angular/common@">=12.0.0" from @abp/[email protected]
npm ERR! node_modules/@abp/ng.account.core
npm ERR! @abp/ng.account.core@"~5.3.4" from @abp/[email protected]
npm ERR! node_modules/@abp/ng.account
npm ERR! @abp/ng.account@"~5.3.4" from the root project
npm ERR! @abp/ng.account.core@"~5.3.4" from @abp/[email protected]
npm ERR! node_modules/@abp/ng.theme.basic
npm ERR! @abp/ng.theme.basic@"~5.3.4" from the root project
npm ERR! 9 more (@angular/cdk, @angular/forms, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^14.1.0" from @ng-bootstrap/[email protected]
npm ERR! node_modules/@ng-bootstrap/ng-bootstrap
npm ERR! peer @ng-bootstrap/ng-bootstrap@">=10.0.0" from @abp/[email protected]
npm ERR! node_modules/@abp/ng.components
npm ERR! @abp/ng.components@"~5.3.4" from the root project
npm ERR! 1 more (@abp/ng.setting-management)
npm ERR!
npm ERR! Conflicting peer dependency: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! peer @angular/common@"^14.1.0" from @ng-bootstrap/[email protected]
npm ERR! node_modules/@ng-bootstrap/ng-bootstrap
npm ERR! peer @ng-bootstrap/ng-bootstrap@">=10.0.0" from @abp/[email protected]
npm ERR! node_modules/@abp/ng.components
npm ERR! @abp/ng.components@"~5.3.4" from the root project
npm ERR! 1 more (@abp/ng.setting-management)
npm ERR!
....
What I am doing wrong? I just downloaded abp framework code from internet and run npm install but ended with this. What should i do?
CodePudding user response:
use the flag --legacy-peer-deps
npm install [package] --legacy-peer-deps
CodePudding user response:
[email protected] has exactly one dependancy. It's tslib. Which version are you using? Maybe try to update that.
CodePudding user response:
I found some github repo that says to use yarn instead of npm and it helps. Thank anyway :)