The node package manager, npm, is now at v.2.0.2 but the update path isn’t obvious on Windows 7.
- remove Node.js from Programs and Features
- install the latest Node.js (use the .msi for x86 or x64)
npm install npm -g
- 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:
If you need to update later the standard command should work:
npm update npm -g