Sam Mikes Sam Mikes - 1 year ago 179
Node.js Question

How do I update npm on Windows?

When I install node 0.10.33 from the msi ( ), I get an old version of npm (1.4.28). How can I upgrade npm on Windows?

npm install -g npm

does not work; I still have the old npm.

Answer Source

You need to follow the Windows upgrade instructions ( )

tl;dr - npm -g install npm does work, but the old version of npm is still in your PATH.

To fix this, do one of these:

Option 2: remove both of

C:\Program Files (x86)\nodejs\npm

C:\Program Files (x86)\nodejs\npm.cmd


Option 3: Open cmd.exe as administrator, navigate to C:\Program Files (x86)\nodejs and then run the installation without -g:

npm install npm@latest

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download