12345678910111213141516# 下载git clone https://github.com/cnpm/nvm.git ~/.nvmcd ~/.nvmgit checkout `git describe --abbrev=0 --tags`# 激活echo ". ~/.nvm/nvm.sh" >> /etc/profile# 也可以直接到 ~/.bashrcsource /etc/profile# 使用nvm list-remote # 远程nvm ls # 本地nvm install v10.24.1 # 安装nvm use v10.24.1 #使用nvm alias default v10.24.1 #可以设置为default refhttps://blog.csdn.net/qq_28387069/article/details/82935167