2021-02-01 nvm 解决 0curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubu...

nvm 安装时  报错:

0curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443 

出现原因:dns解析没有获取到正确的ip地址

解决办法: 

在这个网站中 https://www.ipaddress.com/ 查询出  raw.githubusercontent.com 网址对应的ip地址,然后将ip与网址的映射添加在 hosts 文件中。

mac:

vim /etc/hosts

你可能感兴趣的:(2021-02-01 nvm 解决 0curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubu...)