Update npm to v.2.0.x on Windows 7

The node package manager, npm, is now at v.2.0.2 but the update path isn’t obvious on Windows 7.

  1. remove Node.js from Programs and Features
  2. install the latest Node.js (use the .msi for x86 or x64)
  3. npm install npm -g
  4. delete ‘npm’, ‘npm.cmd’ files from “C:\Program Files\nodejs”

You have to delete the version of npm in the nodejs folder or it will take precedence over the version installed in your %APPDATA%.

Now you can check you have the latest version:

npm --version

If you need to update later the standard command should work:

npm update npm -g


One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s