美文网首页
unable to access 'https://github

unable to access 'https://github

作者: 笑看人生_44e2 | 来源:发表于2024-01-29 14:56 被阅读0次
image.png
fatal: unable to access 'https://ghproxy.com/https://github.com/CocoaPods/Specs.git/': Recv failure: Connection reset by peer
[!] CocoaPods was not able to update the master repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose

组件开发/pod update/上传组件失败,pod update 不下来,始终就是失败,找了各种资料,搞不定,废话不多说,失败的经历就不说了,直接说正确的解决方案;
这种问题就是连不上github了,
1.先 ping github.com 看一下通吗;

  1. 不通的话就看一下现在github实际的ip https://sites.ipaddress.com/github.com ---
    140.82.113.3 ;
  2. 在hosts里添加github的ip 140.82.113.3 github.com (找到hsots文件---com+shift+g 输入路径 /private/etc/hosts);
    这个时候基本上就可以了,但是我的还有一个加速呢,这个加速导致无法打开github;
    这时候还需要操作一下 com+shift+g 找到 ~/.gitconfig 这个文件把里面的


    image.png

    删除了就行嘞,不需要加速就可以

相关文章

网友评论

      本文标题:unable to access 'https://github

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