angular-university / rxjs-course

RxJs In Practice Course - https://angular-university.io/course/rxjs-course
MIT License
381 stars 435 forks source link

npm install yielded resolve dependency issue related to codelyzer and tslint #61

Open vinaykumarvenugopal opened 2 years ago

vinaykumarvenugopal commented 2 years ago

CTC+vvenugopal@AZJ-L-FBPHNN3 MINGW64 /c/Vinay/Learning/Angular/rxjs-course (master) $ npm install npm WARN config global --global, --local are deprecated. Use --location=global instead. 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.2 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 C:\Users\vvenugopal\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\vvenugopal\AppData\Local\npm-cache_logs\2022-09-10T04_52_29_431Z-debug-0.log

markxp commented 1 year ago

same problem

$ 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.2
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.

As npm recommend using --force flag to skip the error temporary, I did that. (Hope there's a qucik fix)