Last active
August 29, 2015 14:07
-
-
Save djsylvester/2ff51db2f92bc13441ca to your computer and use it in GitHub Desktop.
win-node-npm-version-2-install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deleted all the old instructions now that there's an easier way (as I expected would happen). | |
01> Download and run install with default | |
02> Open terminal as Administrator | |
03> cd to C:\Program Files\nodejs (C:\Program Files (86)\nodejs if you installed 32-bit version) | |
04> Copy npmrc to desktop (or somewhere you remember) | |
Per https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows (OPTION 3) | |
05> npm install npm@2.0.0 | |
06> npm update npm | |
07> Move copied npmrc from step 4 back | |
08> Exit terminal and restart AS Administrator | |
09> npm --version -should show latest npm v2 version | |
10> npm config get prefix -should show %APPDATA\npm | |
UPDATE Node: | |
1> Download node.exe (not the msi package) | |
2> Copy node.exe to C:\Program Files\nodejs | |
UPDATE npm or/and install packages: | |
1> Open cmd.exe as Administrator | |
2> cd to C:\Program Files\nodejs | |
2> npm install/update npm -without "-g" | |
3> npm -g <package> -installs global packages in %APPDATA\npm\node_modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment