angular-university / angular-testing-course

Angular Testing Course - A complete guide to Angular Unit Testing and E2E Testing
MIT License
295 stars 655 forks source link

master branch issue with npm install #41

Open edjm1971 opened 1 year ago

edjm1971 commented 1 year ago

I pulled the codebase down this morning to try and resolve my project which I started earlier this year but ran into the problem with npm install.

Are you going to fix this?

angular-testing-course-master]$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: codelyzer@0.0.28
npm ERR! Found: tslint@6.1.3
npm ERR! node_modules/tslint
npm ERR!   dev tslint@"~6.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer tslint@"^3.9.0" from codelyzer@0.0.28
npm ERR! node_modules/codelyzer
npm ERR!   dev codelyzer@"^0.0.28" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: tslint@3.15.1
npm ERR! node_modules/tslint
npm ERR!   peer tslint@"^3.9.0" from codelyzer@0.0.28
npm ERR!   node_modules/codelyzer
npm ERR!     dev codelyzer@"^0.0.28" 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 /home/userme/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/userme/.npm/_logs/2022-10-27T13_38_08_457Z-debug-0.log
angular-testing-course-master$ 
edjm1971 commented 1 year ago

I've tried playing with settings and modifying in my project the packages but am fed up at this point. Force will work but that just does not feel to be the correct way to handle the issue.

edjm1971 commented 1 year ago

Using npm install --force gives the following output


angular-testing-course-master]$ npm install --force
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: codelyzer@0.0.28
npm WARN Found: tslint@6.1.3
npm WARN node_modules/tslint
npm WARN   dev tslint@"~6.1.0" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer tslint@"^3.9.0" from codelyzer@0.0.28
npm WARN node_modules/codelyzer
npm WARN   dev codelyzer@"^0.0.28" from the root project
npm WARN 
npm WARN Conflicting peer dependency: tslint@3.15.1
npm WARN node_modules/tslint
npm WARN   peer tslint@"^3.9.0" from codelyzer@0.0.28
npm WARN   node_modules/codelyzer
npm WARN     dev codelyzer@"^0.0.28" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: karma-jasmine-html-reporter@1.7.0
npm WARN Found: jasmine-core@3.6.0
npm WARN node_modules/jasmine-core
npm WARN   dev jasmine-core@"~3.6.0" from the root project
npm WARN   1 more (karma-jasmine)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer jasmine-core@">=3.8" from karma-jasmine-html-reporter@1.7.0
npm WARN node_modules/karma-jasmine-html-reporter
npm WARN   dev karma-jasmine-html-reporter@"^1.5.0" from the root project
npm WARN 
npm WARN Conflicting peer dependency: jasmine-core@4.4.0
npm WARN node_modules/jasmine-core
npm WARN   peer jasmine-core@">=3.8" from karma-jasmine-html-reporter@1.7.0
npm WARN   node_modules/karma-jasmine-html-reporter
npm WARN     dev karma-jasmine-html-reporter@"^1.5.0" from the root project

removed 1 package, and audited 1616 packages in 8s

161 packages are looking for funding
  run `npm fund` for details

5 high severity vulnerabilities

To address all issues, run:
  npm audit fix

```Run `npm audit` for details.
angular-testing-course-master]$