Failed to connect to localhost p

2019-10-28  本文已影响0人  恩莱客

今天遇到pod update、pod install 报端口错误:

fatal: unable to access '[https://github.com/danielgindi/Charts.git/](https://github.com/danielgindi/Charts.git/)': Failed to connect to localhost port 1087: Connection refused

解决办法:

1. 查询当前代理
env | grep -i proxy
http_proxy=http://localhost:1087
https_proxy=http://localhost:1087
2. 取消代理
qunleedeMacBook-Pro:YiQiXiuCompany qunlee$ export http_proxy=""
qunleedeMacBook-Pro:YiQiXiuCompany qunlee$ export https_proxy=""
3. 查询是否修改
qunleedeMacBook-Pro:YiQiXiuCompany qunlee$ env | grep -i proxy
http_proxy=
https_proxy=

OK,现在再去做pod install、pod update操作就可以了。

上一篇下一篇

猜你喜欢

热点阅读