安装nvm
nvm github地址: https://github.com/nvm-sh/nvm
windows版地址: https://github.com/coreybutler/nvm-windows
使用nvm
#查看可供安装的版本
nvm list available
#查看安装了那些版本
nvm ls
#安装特定版本
nvm install 14.7.0 # or 16.3.0, 12.22.1, etc
#使用特定版本
nvm use 14.7.0 # or 16.3.0, 12.22.1, etc
#获取安装路径
nvm which 14.7.0 # or 16.3.0, 12.22.1, etc
评论区