mac安装nvm报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443

429 阅读1分钟

原因是dns污染

1、通过 www.ipaddress.com/ 获得 raw.githubusercontent.com 的 IP 地址

2、在本机的 host 文件中添加:(访达输入/etc/hosts查找hosts文件)

185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com