0

installed node verion 16.13 previously it was node v 14.18.1

npm ERR! code ERESOLVE Blockquote

npm ERR! ERESOLVE could not resolve

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/build-angular@"~0.1101.2" from the root project

npm ERR! npm ERR! Could not resolve dependency:

npm ERR! dev @angular-devkit/build-angular@"~0.1101.2" from the root project npm ERR!

npm ERR! Conflicting peer dependency: @angular/[email protected]

npm ERR! node_modules/@angular/compiler-cli

npm ERR! peer @angular/compiler-cli@"^11.0.0 || ^11.1.0-next" from @angular-devkit/[email protected]

npm ERR! node_modules/@angular-devkit/build-angular

npm ERR! dev @angular-devkit/build-angular@"~0.1101.2" 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.

3
  • dont know why its coming Commented Jan 20, 2023 at 14:52
  • 1
    What was the last command you used to get this error? Commented Jan 20, 2023 at 14:54
  • @Ambujsahu manually changed package.json Commented Jan 20, 2023 at 14:55

2 Answers 2

0

enter image description here

this was old and new package.json

Sign up to request clarification or add additional context in comments.

3 Comments

but its not worked
you should not do this manually , refer official docs for step on how to upgrade to angular 11. Try using this command it might help ng update @angular/core@11 @angular/cli@11 --force
Let me try this again @Ambujsahu
0

Got an Ans we have to run this command force as if we use normal ng update @angular/core@11 @angular/cli@11 it won`t work so used

ng update @angular/core@11 @angular/cli@11 --force

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.