美文网首页
Failed to connect to 127.0.0.1 p

Failed to connect to 127.0.0.1 p

作者: chushen61 | 来源:发表于2020-05-15 13:45 被阅读0次

    网上很多介绍开了代理会出现git 连接被拒的情况,取消代理即可,这里暂不是这种情况,

    cocoaPods 报错!!!

    [!] Error installing AFNetworking

    [!] /usr/local/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/s5/8z4670mn7sjgmch0ybqbhm140000gp/T/d20161109-66691-1bgcw3d --template= --single-branch --depth 1 --branch 3.1.0

    Cloning into '/var/folders/s5/8z4670mn7sjgmch0ybqbhm140000gp/T/d20161109-66691-1bgcw3d'...

    fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused

    报错情况是这样的

    解决办法:

    1、open ~/.gitconfig

    2、删除里面的

    [http "https://github.com"]

    proxy = socks5://127.0.0.1:1080

    发现又遇到报红

    [!] Error installing AFNetworking

    [!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/tl/kf25fsb55tsf46648k8hl8r40000gp/T/d20200515-768-utwmyp --template= --single-branch --depth 1 --branch 4.0.1

    Cloning into '/var/folders/tl/kf25fsb55tsf46648k8hl8r40000gp/T/d20200515-768-utwmyp'...

    fatal: bad numeric config value '524288000:' for 'http.postbuffer': invalid unit

    解决办法:

    1、open ~/.gitconfig

    2、删除里面的

    http.postbuffer    524288000

    相关文章

      网友评论

          本文标题:Failed to connect to 127.0.0.1 p

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