How can I update npm on Windows?

Jatin

I tried this:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

...but it didn't work.

How do I do this on Windows?

Robert Baker

This is the new best way to upgrade npm on Windows.

Run PowerShell as Administrator

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade

Note: Do not run npm i -g npm. Instead use npm-windows-upgrade to update npm going forward. Also if you run the NodeJS installer, it will replace the node version.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How do I update npm on Windows?

From Dev

How can I update npm package on github

From Dev

How can I hide specific Windows update?

From Dev

How can I update all npm packages/modules at once?

From Dev

How can I update the protractor npm module in node.js?

From Dev

How can I stop windows from rebooting after an automatic update?

From Dev

How can I update window/title color in Windows 10?

From Dev

How can I disable the Timeline in Windows 10 April 2018 Update?

From Dev

Update to Windows 10 version 1709 is stuck, how can I fix it?

From Dev

How can I update the registry values every time Windows starts?

From Dev

How can I query a computer for the "Last Checked" information of Windows Update?

From Dev

How do I run `npm update -g npm` on Elastic Beanstalk?

From Dev

How can I fix the Windows Update error message, "We couldn't update the system reserved partition?"

From Dev

How can I see whether the last Microsoft Windows 10 restart was caused by Windows update?

From Dev

How can I update a data

From Dev

how can I update hostname

From Dev

Can I safely update Windows 10?

From Dev

How can I run mocha with npm script?

From Dev

How can I use commander (npm) with TypeScript?

From Dev

How can I run NPM without sudo?

From Dev

How can I install npm on 17.10?

From Dev

How can I make this npm project works?

From Java

How can I update the current line in a C# Windows Console App?

From Dev

How can i update one specific dotnet assembly in Universal Windows Platform app?

From Dev

How can I stop Bing Bar from showing up in Windows Update

From Dev

How can I find out what went wrong with a failed Windows update?

From Dev

How can I tell if a Windows 10 PC has the Anniversary Update installed?

From Dev

How can I get the old (Win7,8) UAC dialog back in Windows 10 Anniversary Update?

From Dev

How can I get back Synaptics extensions in Windows 10 Anniversary update?

Related Related

  1. 1

    How do I update npm on Windows?

  2. 2

    How can I update npm package on github

  3. 3

    How can I hide specific Windows update?

  4. 4

    How can I update all npm packages/modules at once?

  5. 5

    How can I update the protractor npm module in node.js?

  6. 6

    How can I stop windows from rebooting after an automatic update?

  7. 7

    How can I update window/title color in Windows 10?

  8. 8

    How can I disable the Timeline in Windows 10 April 2018 Update?

  9. 9

    Update to Windows 10 version 1709 is stuck, how can I fix it?

  10. 10

    How can I update the registry values every time Windows starts?

  11. 11

    How can I query a computer for the "Last Checked" information of Windows Update?

  12. 12

    How do I run `npm update -g npm` on Elastic Beanstalk?

  13. 13

    How can I fix the Windows Update error message, "We couldn't update the system reserved partition?"

  14. 14

    How can I see whether the last Microsoft Windows 10 restart was caused by Windows update?

  15. 15

    How can I update a data

  16. 16

    how can I update hostname

  17. 17

    Can I safely update Windows 10?

  18. 18

    How can I run mocha with npm script?

  19. 19

    How can I use commander (npm) with TypeScript?

  20. 20

    How can I run NPM without sudo?

  21. 21

    How can I install npm on 17.10?

  22. 22

    How can I make this npm project works?

  23. 23

    How can I update the current line in a C# Windows Console App?

  24. 24

    How can i update one specific dotnet assembly in Universal Windows Platform app?

  25. 25

    How can I stop Bing Bar from showing up in Windows Update

  26. 26

    How can I find out what went wrong with a failed Windows update?

  27. 27

    How can I tell if a Windows 10 PC has the Anniversary Update installed?

  28. 28

    How can I get the old (Win7,8) UAC dialog back in Windows 10 Anniversary Update?

  29. 29

    How can I get back Synaptics extensions in Windows 10 Anniversary update?

HotTag

Archive