how to change npm version windows code example
Example 1: how to update npm version in windows
On Win10:
Run PowerShell as Administrator and sequentially enter commands:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade
Example 2: how to change version of npm
cd ~/.nvm/versions/node/v4.2.2/lib
npm install npm