Do these from powershell or bash running as admin.
Node usually ships with an older version of npm.
Two things to consider:
- You'll need to upgrade npm once for each version of node installed by
nvm-windows
with which you wish to use the different version of npm. - You'll need to manually specify the
nvm-windows
' installation path for the version of node whose associated npm you wish to upgrade.
First, install npm-windows-upgrade. Then, locate the nvm-windows
installation path for the version of node whose npm you wish to upgrade. Usually at C:\Users\[user name]\AppData\Roaming\nvm\[node version]
.