问题描述
几天以来,我遇到了Mac OS High Sierra 10.13.3的问题:当我运行像git clone github.com/xxx.git failed
这样的git clone
时它打印:
Since a few days I got an issue with Mac OS High Sierra 10.13.3 :When I run a git clone
like git clone github.com/xxx.git failed
it print:
与npm i
命令相同的问题即使当我尝试像这样安装brew时:
Same issue with npm i
commandEven when I try to install brew like so:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我还尝试了替代设置:相同.
推荐答案
在使用wget ...
时,我也遇到了类似的错误,并且在Internet上进行了许多不成功的搜索后,我发现主机名被解析为IPv6时正在发生这种情况.地址.我是通过在两台计算机上比较wget ...
的输出来发现这一点的,其中一台正在解析为IPv4并在那儿工作,另一台正在解析为IPv6并在那儿失败了.
I had this similar error when using wget ...
, and after much unfruitful searching in the Internet, I discovered that it was happening when hostnames were being resolved to IPv6 addresses. I discovered this by comparing the outputs of wget ...
in two machines, one was resolving to IPv4 and it worked there, the other was resolving to IPv6 and it failed there.
因此,我的解决方案是在macOS High Sierra 10.13.6上运行 networksetup -setv6off Wi-Fi
. (我在页面中发现了此命令).
So the solution in my case was to run networksetup -setv6off Wi-Fi
on macOS High Sierra 10.13.6. (I discovered this command in this page).
希望这对您有所帮助.
这篇关于SSL_connect:连接到github.com的SSL_ERROR_SYSCALL:443的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!