Hello Guys, How are you all? Hope You all Are Fine. When I run ng new npm ERR! ERESOLVE unable to resolve dependency tree in nodejs. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How When I run ng new npm ERR! ERESOLVE unable to resolve dependency tree Error Occurs ?
I just ran ng new
in the terminal. I am getting an npm error
⠸ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
How To Solve When I run ng new npm ERR! ERESOLVE unable to resolve dependency tree Error ?
How To Solve When I run ng new npm ERR! ERESOLVE unable to resolve dependency tree Error ?
To Solve When I run ng new npm ERR! ERESOLVE unable to resolve dependency tree Error just Change “jasmine-core”: “~3.7.0” to “jasmine-core”: “~3.8.0” Open your package.json Simply edit the line that says “jasmine-core”: “~3.7.0” to be “jasmine-core”: “~3.8.0” then manually run npm install and it should succeed You should then be able to run ng serve –open from the same directory and have it run just fine.
Solution 1: Change "jasmine-core": "~3.7.0"
to "jasmine-core": "~3.8.0"
- Open your package.json
- Simply edit the line that says
"jasmine-core": "~3.7.0"
- to be
"jasmine-core": "~3.8.0"
- then manually run
npm install
and it should succeed - You should then be able to run
ng serve --open
from the same directory and have it run just fine.
Summery
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also Read