When I install node 0.10.33 from the msi ( http://nodejs.org/download/ ), I get an old version of npm (1.4.28). How can I upgrade npm on Windows?
npm install
I did something similar to Sam Mikes. I'm only sharing this because I couldn't get either of his solutions to work on my rig. After a bit of playing around, this is what worked for me:
%USERPROFILE%
-- that's a window's environment variable that takes you to C:\Users\CurrentlyLoggedInUser
"C:\Program Files\nodejs\npm" install npm -g
(you might have yours in the x86 folder)npm -v
will show a an up-to-date versionNote: I've used the Microsoft automated script in the past to fix this, but only because I didn't realize how easy it would be to do it myself.