npm

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

YMMV