Skip to content

npm install not working #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hoall opened this issue Jan 15, 2021 · 3 comments
Closed

npm install not working #146

hoall opened this issue Jan 15, 2021 · 3 comments

Comments

@hoall
Copy link

hoall commented Jan 15, 2021

Hi,

I start to learn angular with your course on pluralsight. Unfortunately, the "Setting up the Angular application" steps do not work. npm install gives me the following error messages:

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/compiler
npm ERR!   @angular/compiler@"~10.0.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler@"10.2.4" from @angular/[email protected]
npm ERR! node_modules/@angular/compiler-cli
npm ERR!   peer @angular/compiler-cli@">=10.0.0-next.0 < 11" from @angular-devkit/[email protected]
npm ERR!   node_modules/@angular-devkit/build-angular
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!

I am on windows.

Would be great if you can fix this.

Regards

@DeborahK
Copy link
Owner

DeborahK commented Jan 15, 2021

The steps work, it's just that npm is sometimes problematic. :-)

Things to try:

  1. Try cleaning your npm cache:
  • Run npm cache verify
  • Delete your node_modules folder and package-lock.json file (if they exist in the project folder)
  • Run npm install again.
  1. If that doesn't work, double check your version of npm. Ensure you install the LTS version of node (with npm) and not the "current" version, which seems to have more issues. Then repeat npm install not working #1.

Let me know if either of these options worked for you.
All the best -

@iamtij
Copy link

iamtij commented Jan 18, 2021

Thanks for this. #2 worked for me, I managed to set it up. I am starting this course today. Thank you!

@SkiTuscany
Copy link

Same issue for me. Maybe you could warn people in the video that Latest Current Version: 15.8.0 (includes npm 7.5.1) is dud and users should be sure to select Latest LTS Version: 14.15.5 (includes npm 6.14.11)? I've wasted hours on this both with your code and John Papa's and only happened on this closed issue by chance just as I was about to report the same issue!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants