- Uninstall Node using Control Panel.
- Make sure there is nothing on your path to any node or NPM directory
- Download Node from https://nodejs.org/
- Run the installer
- Select to install NPM
- Select to add Node the path
- You will now have a c:\Program Files (x86)\nodejs\ directory, and in it are both NPM and Node.
- Run: npm install npm –g
- You will now have the most up to date NPM in c:\Users\[user]\AppData\Roaming\npm\
- Run the node installer again, and deselect NPM.
- This will remove NPM from the c:\Program Files (x86)\nodejs\ directory
- Now, add NPM to your path (c:\Users\[user]\AppData\Roaming\npm\)
You are now in a position to keep NPM up to date, independently of Node, and both are where they belong.