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

npm not updating when installing nodejs LTS #1713

Closed
Gerriko opened this issue Jan 9, 2019 · 4 comments
Closed

npm not updating when installing nodejs LTS #1713

Gerriko opened this issue Jan 9, 2019 · 4 comments

Comments

@Gerriko
Copy link

Gerriko commented Jan 9, 2019

  • Node.js Version: 10.15.0

  • OS: Windows 10

  • Scope (install, code, runtime, meta, other?): Process used is unistall nodejs then select my relevant node .msi file for installation

  • Module (and version) (if relevant): npm

I seem to have a local computer issue, but because it is not clear to me what files are removed when the uninstall routine is used as well as what is happening when I install the LTS version of nodejs I cannot resolve an npm version issue.

Basically, when checking npm version it remains at version 5.4.1.

I have even manually deleted the npm/bin folder and all npm folders I could find in my global node modules folder prior to a node js uninstall and this still does not resolve things.

So somewhere node js is checking for dependencies or something locally on my computer and is only installing npm version 5.4.1 and not the latest version.

How do I fix this?

-->

@morgan-christopher
Copy link

I'm also having a similar problem. With Windows 10 Education, Version 10.0.1734 and nodejs 10.15.0. Mine was also staying at npm 5.4.something.

I finally was able to find whatever file was keeping the old npm alive, but now I've done a fresh install and now no npm is to be found. Here's a screenshot of the error message:
npm

@morgan-christopher
Copy link

@Gerriko I found this comment in another thread helpful-- I was able to delete two old folders (npm and npm_cache) and then the correct version of npm showed up. Here's the comment that details the location to look:

#1592 (comment)

@Gerriko
Copy link
Author

Gerriko commented Jan 16, 2019

@morgan-christopher thanks. I had also contacted the npmjs.com helpdesk and they assured me that the way to update npm, once installed on Windows 10 was to run the following command:

npm i -g npm@latest --verbose

@gireeshpunathil
Copy link
Member

thanks for sharing the info back. closing as resolved.

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

3 participants