美文网首页
Git clone 和Pod install报错

Git clone 和Pod install报错

作者: 深刻的你 | 来源:发表于2022-04-22 10:30 被阅读0次

Mac终端的Git clone或者Pod install报下面的错误信息:
Failed to connect to github.com port 443 after 75009 ms: Operation timed out

解决方案:
修改hosts文件,执行命令行指令:

sudo vim /etc/hosts

输入密码后进入到编辑框中,输入i,进入编辑模式。用#注释掉下面的地址

#192.30.253.112 github.com
#151.101.113.194 github.global.ssl.fastly.net

esc :wq保存。
再次执行clone或者pod install成功。

相关文章

网友评论

      本文标题:Git clone 和Pod install报错

      本文链接:https://www.haomeiwen.com/subject/daggertx.html