Grunt/Git在连接到github.com:443时抛出未知SSL协议错误
我正在使用Grunt建立一个有棱角的网站。在大约三分之一的版本中,我看到以下错误:Grunt/Git在连接到github.com:443时抛出未知SSL协议错误,git,angular,ssl,gruntjs,bower,Git,Angular,Ssl,Gruntjs,Bower,我正在使用Grunt建立一个有棱角的网站。在大约三分之一的版本中,我看到以下错误: ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git", exit code of #128 fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown
ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git", exit code of #128 fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown SSL protocol error in connection to github.com:443
查看GIT\u CURL\u VERBOSE=1和GIT\u TRACE\u PACKET=2可以得到以下结果:
Additional error details:
* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
* Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
* Unknown SSL protocol error in connection to github.com:443
* stopped the pause stream!
* Closing connection 0
fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown SSL protocol error in connection to github.com:443
我尝试了以下方法,但没有成功:
git config --global --add http.sslVersion tlsv1.2
git config --global http.sslverify false
git config --global url."https://".insteadOf git://
git config --global url."https://github.com/".insteadOf git@github.com
键入命令“git ls remote--tags--heads”每次都有效。当域名被IP地址替换时,问题会出现,请尝试将github.com添加到主机文件中,并确保已正确解决 出现问题的行:
* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
* Trying 192.30.253.112...
我知道这听起来很愚蠢,但你是在虚拟机上运行的吗?如果是这样,请尝试增加它可以访问的CPU内核的数量,因为我们遇到了类似的问题,这似乎可以解决它。感谢您的想法,但没有任何改进!线路:*连接到github.com(192.30.253.112)端口443(#0)表明github.com已经解决了吗?也许,检查一下这个,也许它会有帮助,因为它听起来很可笑,这很有效。它连续建造了10次,比以往任何时候都好。谢谢