Emi*_*ero 23 git homebrew openssl npm
几天后我遇到了Mac OS High Sierra 10.13.3的问题:当我运行git clone类似git clone github.com/xxx.git failed
打印时:
LibreSSL SSL_connect:与github.com:443相关的SSL_ERROR_SYSCALL
与npm i命令相同的问题即使我尝试像这样安装brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Run Code Online (Sandbox Code Playgroud)
我也尝试了替代设置:相同.
mlj*_*jrg 15
我在使用时遇到了类似的错误wget ...,在互联网上进行了大量无用的搜索之后,我发现当主机名被解析为IPv6地址时就会发生这种情况.我通过比较wget ...两台机器的输出来发现这一点,一台解析为IPv4而且它在那里工作,另一台解析为IPv6而在那里失败了.
所以我的案例中的解决方案是networksetup -setv6off Wi-Fi在macOS High Sierra 10.13.6上运行.(我在这个页面中发现了这个命令).
希望这对你有所帮助.
ken*_*orb 14
由于您使用LibreSSL,尝试重新安装curl以OpenSSL代替安全传输。
所有选项都已从curl公式中删除,因此现在您需要通过以下方式安装:
brew install curl-openssl
Run Code Online (Sandbox Code Playgroud)
安装curl有--with-openssl:
brew reinstall curl --with-openssl
Run Code Online (Sandbox Code Playgroud)
注意:如果以上方法不起作用,请检查brew options curl以显示特定于公式的安装选项。
以下是一些其他建议:
http_proxy/ https_proxy。-v到curl更详细的输出。curl在 处使用 BSD /usr/bin/curl,运行which -a curl以列出它们。curl防火墙(例如Little Snitch)。wget.小智 13
这里的问题相同,原来是我配置错误的代理设置,以下是检查和删除它们的方法.
首先打开你的git配置文件.
vi ~/.gitconfig
Run Code Online (Sandbox Code Playgroud)
并找出是否设置了[http]或[https]部分.
我曾经为git设置代理,因为在中国访问Github的速度很慢,但是,最近我更改了我的本地代理端口,但是我忘记了我的git设置.
如果您的代理设置不正确并决定将其删除,只需执行:
git config --global --unset http.proxy
git config --global --unset https.proxy
Run Code Online (Sandbox Code Playgroud)
事情会好起来的.
Fra*_*con 10
我使用 ClashX 1.30.2,我可以在 Google Chrome 中访问 google.com。
\n遇到这个问题后,我单击“复制 shell 命令”
\n\n我执行上面复制的命令行。
\nexport https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
它解决了这个问题。
\n\nBefore I encounted the issue.\n\xe2\x9e\x9c octopus brew services start jenkins-lts\n==> Tapping homebrew/services\nCloning into \'/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services\'...\nfatal: unable to access \'https://github.com/Homebrew/homebrew-services/\': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443\nError: Failure while executing; `git clone https://github.com/Homebrew/homebrew-services /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services --origin=origin` exited with 128.\nError: Failure while executing; `/usr/local/bin/brew tap homebrew/services` exited with 1.\nRun Code Online (Sandbox Code Playgroud)\n设置代理后,我解决了这个问题。
\n\xe2\x9e\x9c octopus export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890\n\xe2\x9e\x9c octopus brew services start jenkins-lts\n==> Tapping homebrew/services\nCloning into \'/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services\'...\nremote: Enumerating objects: 1174, done.\nremote: Counting objects: 100% (53/53), done.\nremote: Compressing objects: 100% (43/43), done.\nremote: Total 1174 (delta 19), reused 13 (delta 9), pack-reused 1121\nReceiving objects: 100% (1174/1174), 342.45 KiB | 2.22 MiB/s, done.\nResolving deltas: 100% (496/496), done.\nTapped 1 command (41 files, 432.8KB).\n==> Successfully started `jenkins-lts` (label: homebrew.mxcl.jenkins-lts)\nRun Code Online (Sandbox Code Playgroud)\n
一个简单的重启为我修复了它。我不确定是什么问题,因为我使用了这么多软件,但我感觉是 VPN 软件,或者我的笔记本电脑经常处于睡眠状态并且某些文件已损坏。我真的不知道,但重启修复了它。
来自https://github.com/Homebrew/brew/issues/4436#issuecomment-403194892
通过设置此环境变量解决的问题:
export HOMEBREW_FORCE_BREWED_CURL=1
Run Code Online (Sandbox Code Playgroud)
我有一个类似的问题,我刚刚发现在我的情况下可能是防病毒软件造成了问题。
有时我在尝试从 github.com 中提取一些数据时遇到了同样的错误。
我知道卡巴斯基正在拦截 SSL 连接以检查来自站点的恶意内容,我决定禁用它,但我发现 KAV 挂起并且没有真正响应,所以我只是关闭了卡巴斯基并尝试再次连接到 github.com唉!我能够成功连接到 GitHub。
所以在你的情况下,它可能是一个类似的问题。
1)尝试创建一个新分支并推送。工作了几次,但再次面临同样的错误。
2)在推送代码之前运行这两个语句。我所做的就是取消代理。
$ git config --global --unset http.proxy
$ git config --global --unset https.proxy
Run Code Online (Sandbox Code Playgroud)
3)几周后再次面对这个问题。我已经更新了自制软件,它得到了修复
小智 5
如果其他解决方案都无法解决您的问题,请尝试直接编辑 .gitconfig 文件。就我而言,我使用 HTTP、HTTPS、SOCK 的 VPN 代理。我的本地代理端点是 127.0.0.1:4780
.gitconfig 文件
[user]
name = xxx
email = xxx@xxx.com
[remote "origin"]
proxy = http://127.0.0.1:4780
[http]
proxy = http://127.0.0.1:4780
[https]
proxy = http://127.0.0.1:4780
Run Code Online (Sandbox Code Playgroud)
请务必使用代理端点填写 [remote "origin"] 部分。
| 归档时间: |
|
| 查看次数: |
45882 次 |
| 最近记录: |