Angular 11.2.6 ?


Topic: Angular 11.2.6 ?

blondie63 pro premium priority asked 4 years ago

My app working fine with Angular 11.2.4 and MDB 11.0.0 Upgrading to 11.2.6 i've this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: @angular/animations@11.2.4 npm ERR! node_modules/@angular/animations npm ERR! @angular/animations@"~11.2.6" from the root project npm ERR! peerOptional @angular/animations@"11.2.4" from @angular/platform-browser@11.2.4 npm ERR! node_modules/@angular/platform-browser npm ERR! @angular/platform-browser@"~11.2.6" from the root project npm ERR! peer @angular/platform-browser@"11.2.4" from @angular/forms@11.2.4 npm ERR! node_modules/@angular/forms npm ERR! @angular/forms@"~11.2.6" from the root project npm ERR! 1 more (ng-uikit-pro-standard) npm ERR! 2 more (@angular/platform-browser-dynamic, @angular/router) npm ERR! 1 more (ng-uikit-pro-standard) npm ERR! npm ERR! Could not resolve dependency: npm ERR! @angular/animations@"~11.2.6" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/core@11.2.6 npm ERR! node_modules/@angular/core npm ERR! peer @angular/core@"11.2.6" from @angular/animations@11.2.6 npm ERR! node_modules/@angular/animations npm ERR! @angular/animations@"~11.2.6" 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.

How can i fix it ?


Arkadiusz Idzikowski staff commented 4 years ago

Please try to remove node_modules and package-lock.json and reinstall the dependencies using npm install command.

Or use commands suggested in the error message: npm install --force / npm install --legacy-peer-deps


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 11.0.0
  • Device: Browser
  • Browser: Chrome
  • OS: Macos
  • Provided sample code: No
  • Provided link: No
Tags