经常发什么git clone不下来或则yarn install安装失败的情况
1
git config --global url."https://github.com/".insteadOf git@github.com:
2.或则配置开启代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
3.修改host配置
查看github.com的ip地址https://websites.ipaddress.com/github.com
sudo vi /etc/hosts
添加映射:140.82.112.3 github.com