纱线安装抛出github.com [1:127.0.0.1]:errno =连接拒绝

发布于 2025-02-03 23:22:45 字数 591 浏览 3 评论 0原文

当我执行纱线安装时,它抛出了:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文