1、首先是安装nvm遇到的问题
curl -o- raw.githubusercontent.com/creationix/… | bashnvm
老是访问不到git服务器
解决方法:配置host,推荐使用SwithHost工具
添加如下配置
#raw.githubusercontent
199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
如图所示
2、使用nvm添加node版本报错
nvm install stable
装到20%左右就报错
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
解决方法:使用 git config --global http.postBuffer 524288000 增大git postBuffer