windows 10 change npm version code example
Example: 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