原因:一些特殊原因,想更换nodejs的版本。查询告诉我,我需要使用nvm来管理它。使用命令npminstallnvm-g安装!失败的!!!!!!!!!!!!!!!!!!!!!!!!百度了一下解决方法:正确安装和使用nvm,但是在执行命令curl-o-的时候卡住了https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh|bash解决方法如下:由于你了解的一些因素,GitHub的raw.githubusercontent.com域名解析被污染了。在https://www.ipaddress.com/查看raw.githubusercontent.com的真实IP。在host文件中设置为vim/etc/hosts,执行命令下载curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh|bash此时会提示我们重启然后执行命令可以自由选择版本nvm相关命令nvminstall
