nvm node多版本控制

https://github.com/coreybutler/nvm-windows

https://zhuanlan.zhihu.com/p/550963305

C:\Users\user001>node -v
Access is denied.

C:\Users\user001>nvm uninstall 10.15.1
Uninstalling node v10.15.1... done
C:\Users\user001>nvm install 10.15.1
Downloading node.js version 10.15.1 (64-bit)...
Complete
Creating C:\Users\user001\AppData\Roaming\nvm\temp

Downloading npm version 6.4.1... Complete
Installing npm v6.4.1...

Installation complete. If you want to use this version, type

nvm use 10.15.1

C:\Users\user001>node -v
'node' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\user001>nvm use 10.15.1
Now using node v10.15.1 (64-bit)

C:\Users\user001>node -v
v10.15.1

C:\Users\user001>npm -v
6.4.1

posted @ 2022-10-12 14:01  ~清风煮酒~  阅读(30)  评论(0编辑  收藏  举报