记录一下问题
问题描述
yarn安装依赖时报错,安装失败,npm install也不可以
Failed to connect to github.com port 443: Timed out
解决办法
访问www.ipaddress.com/网址查询下面所需的地址对应的IP,输入hostname或domain查询,比如查询github.com的IP:
修改hosts文件
sudo vim /etc/hosts
# /etc/hosts
140.82.112.4 github.com