Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 687 Bytes

Update NPM from NVM Windows 10.md

File metadata and controls

43 lines (33 loc) · 687 Bytes

Update NPM on NVM Windows 10

Use CMD (AppData\Roaming\nvm\v10.16.3)

cd %APPDATA%\nvm\v10.16.3
move npm 6.9.0
move npm.cmd 6.9.0.cmd
cd node_modules\
move npm 6.9.0
cd 6.9.0\bin
node npm-cli.js i -g npm@latest
  • Done

Remove old npm in (AppData\Roaming\nvm\v10.16.3)

rmdir /s /q "node_modules\ 6.9.0"
del /f 6.9.0 6.9.10.cmd

Use Git Bash (AppData\Roaming\nvm\v10.16.3)

cd AppData\Roaming\nvm\v10.16.3
mv npm 6.9.0
mv npm.cmd 6.9.0.cmd
cd node_modules\
mv npm 6.9.0
cd 6.9.0\bin
node npm-cli.js i -g npm@latest
  • Done

Remove old npm (AppData\Roaming\nvm\v10.16.3)

rm -rf "node_modules\ 6.9.0"
rm -f 6.9.0 6.9.10.cmd