纱线安装抛出github.com [1:127.0.0.1]:errno =连接拒绝
当我执行纱线安装
时,它抛出了:
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/frozeman/bignumber.js-nolookahead.git
Directory: /Users/pro/eth/hello-snap
Output:
fatal: unable to connect to github.com:
github.com[0: 127.0.0.1]: errno=Connection refused
github.com[1: ::1]: errno=Connection refused
我检查了/etc/hosts
,没有127.0.0.0.1 github.com
或:: 1 github.com
。
而且,我还通过git config-global -global -unset http.proxy
删除了http.proxy。
它困扰着我一整天
When I executed yarn install
, it throws:
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/frozeman/bignumber.js-nolookahead.git
Directory: /Users/pro/eth/hello-snap
Output:
fatal: unable to connect to github.com:
github.com[0: 127.0.0.1]: errno=Connection refused
github.com[1: ::1]: errno=Connection refused
I checked /etc/hosts
, there was no 127.0.0.1 github.com
or ::1 github.com
.
And also I removed http.proxy by git config --global --unset http.proxy
.
It bothered me a whole day ???????? Does anyone know how it comes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论