

For newer projects the version 1.7.0 may be more suited but it can change with time. Please adapt the version according to your specific necessity. Note: The version 1.5.0 here was used because it is the version that appears in the error message and we are tying to be more conservative here. Manually install npm packages: npm install Run the Angular project creation without automatic npm packages installation: ng new -skip-install Įdit package.json and change this.

And also the fix is more conservative than the proposed solution. Mine is a temporary solution for angular-cli v11.2.12 based on answer and on this angular-cli github issue discussions and on its merged fix.īy executing the steps listed on answer I was still getting the same error. What is bothering me the most is that everything was working completely right last night and I changed nothing at all but suddenly I'm getting this error today. I literally tried everything, I updated npm, installed Angular cli again, download and installed node again, npm audit, and a lot of other things but nothing happened.Īlso as you can see error told me to use the command with -force, I tried but nothing happened, and with -legacy-peer-deps, I get the error as unknown option. Npm ERR! to accept an incorrect (and potentially broken) dependency resolution. Npm ERR! this command with -force, or -legacy-peer-deps Npm ERR! Fix the upstream dependency conflict, or retry Npm ERR! peer from ERR! node_modules/karma-jasmine-html-reporter Npm ERR! While resolving: ERR! Found: ERR! node_modules/jasmine-core So today I wanted to create a new Angular project using the command ng new and I got this error: npm ERR! ERESOLVE unable to resolve dependency tree
