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

Windows Latest LTS Version: 14.17.0 .msi installer does not clear/ upgrade existing npm version #38940

Open
febytanzil opened this issue Jun 5, 2021 · 2 comments
Labels
build Issues and PRs related to build files or the CI. windows Issues and PRs related to the Windows platform.

Comments

@febytanzil
Copy link

I had node v12 and npm v6.9.2 & wanted to upgrade node to v14.

I tried 2 options:

  • just ran the installer and hoping it would upgrade the npm, didn't work
  • uninstalled node and hoping it's fresh installation for node v14 with npm v6.14.x, didn't work

output:

  • npm version was still v6.9.2 which didn't support node v14 and asked to run npm rebuild something
  • googled and found not working solution which is run npm install -g npm
    both have deadlock output, current npm doesn't support node v14 hence can't run both commands

what I had to do manually for fresh installation:

  • uninstall previous node.js
  • go to C:\Users\Username\AppData\Roaming and delete manually npm & npm-cache folder
  • run the msi 14.17.0 again, then it works
@febytanzil febytanzil changed the title Windows Latest LTS Version: 14.17.0 .msi installer and maybe other installers does not clear/ upgrade existing npm version Windows Latest LTS Version: 14.17.0 .msi installer does not clear/ upgrade existing npm version Jun 5, 2021
@Trott Trott transferred this issue from nodejs/nodejs.org Jun 5, 2021
@Trott Trott added build Issues and PRs related to build files or the CI. windows Issues and PRs related to the Windows platform. labels Jun 5, 2021
@Trott
Copy link
Member

Trott commented Jun 5, 2021

@nodejs/build @nodejs/platform-windows

@Sti2nd
Copy link

Sti2nd commented Jul 14, 2021

Got the same error

npm does not support Node.js v14.17.3. You should probably upgrade to a newer version of node...

The npm package npm-windows-upgrade described in this Stack Overflow post worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

3 participants