Skip to content
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

Trying to install NPM on my Windows PC. NodeJS is version 12.16.3, but installer says to get newer version. This was the newest. #1278

Closed
skywatchbob opened this issue May 12, 2020 · 8 comments

Comments

@skywatchbob
Copy link

What / Why

When attempting to install NPM on my Windows PC (Windows 10 Pro) I get an error that I need to get a newer version of NodeJS, although I just downloaded the latest version (12.16.3). Does anyone know if there are issues with this version of NodeJS? How do I install NPM?

n/a

@ljharb
Copy link
Contributor

ljharb commented May 12, 2020

npm only comes with node; how are you trying to install it? (npm install -g npm is how you'd update it)

@skywatchbob
Copy link
Author

I am taking a class and the instructor had me do an upgrade to v. 5.5.1 but that wasn't working. I tried upgrading to the latest and this is what I got.
image

@ljharb
Copy link
Contributor

ljharb commented May 12, 2020

@skywatchbob that's because that's not an upgrade; npm 5 is very old. your instructor isn't giving you good instructions.

@skywatchbob
Copy link
Author

The upgrade command isn't working now. What can I do to fix this?

@ljharb
Copy link
Contributor

ljharb commented May 12, 2020

You'll have to reinstall node. By replacing your working/new npm with an old/broken one, you've broken your copy of node.

@skywatchbob
Copy link
Author

I have uninstalled node and re-installed it, but when I check npm, it remains at version 5.5.1.
How do I get rid of that version and get the installer to use what is in the Node package?

@ljharb
Copy link
Contributor

ljharb commented May 13, 2020

I’m not sure; make sure both node and npm are completely uninstalled before reinstalling node.

@skywatchbob
Copy link
Author

Looks like I finally fixed it. Had to find the npm folder in C:/users/(user name)/AppData/ and delete the npm folders that remain after uninstalling node. Once this was done I re-installed node and got the new version of npm. Thanks for your help.

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

2 participants