DeborahK / Angular-NgRx-GettingStarted

Materials for our Pluralsight course: Angular NgRx: Getting Started: http://bit.ly/AngularNgRx.
MIT License
547 stars 722 forks source link

npm install fails - ERESOLVE unable to resolve dependency tree #53

Closed RaviSankarRao closed 2 years ago

RaviSankarRao commented 2 years ago

After cloning the reporsitory and navigating to APM-Demo0, the command npm install fails with below error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: apm@0.0.0
npm ERR! Found: jasmine-core@3.5.0
npm ERR! node_modules/jasmine-core
npm ERR!   dev jasmine-core@"~3.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.8" from karma-jasmine-html-reporter@1.7.0
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR!   dev karma-jasmine-html-reporter@"^1.4.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.
npm ERR!

After update the below 2 packages version, npm install worked fine

jasmine-core
karma-jasmine-html-reporter

to the versions as shown below

npm install Error - Updated Packages

Requesting to update the package.json for all folders. I tried to create a PR but looks like the repo is not open for that

mathsusan commented 2 years ago

Thank you for pointing out this issue - saved me some extra frustration

fahrizal commented 2 years ago

Thank you. I have this issue also

duncanhunter commented 2 years ago

Thanks @RaviSankarRao for pointing this out we have updated the versions and closed this issue.