安装命令
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash
或
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash
详见:https://github.com/creationix/nvm/blob/master/README.md
如遇到raw.githubusercontent.com:443问题,参考:raw.githubusercontent.com:443连接失败时如何解决https://blog.csdn.net/bengofrank/article/details/123021848
安装成功验证
重启终端,输入命令nvm,可以看到Node Version Manager即代表安装成功。