[Fixed] Angular – npm install

Issue

While I delete and install npm for taking build in ionic android I got this error.

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/[email protected]"~0.1000.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular-devkit/[email protected]"^0.1102.4" from @ionic/[email protected]
npm ERR!   dev @ionic/[email protected]"^3.1.1" 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 C:\Users\Preetha\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Preetha\AppData\Local\npm-cache\_logs\2021-04-01T07_15_57_715Z-debug.log

Solution

Solution is mentioned in error message, try with:

npm i --force

Leave a Reply

(*) Required, Your email will not be published