我正在使用Grunt构建一个有角的网站。关于1/3的构建,我看到以下错误:Grunt/Git在与github.com连接时抛出未知的SSL协议错误:443
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
Seeting GIT_CURL_VERBOSE = 1和GIT_TRACE_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 [email protected]
输入命令“git ls-remote --tags - head https://github.com/FortAwesome/Font-Awesome.git”每次都有效。
尽管听起来这很可笑,这个工作。它连续建造了10次,比它的管理效果要好。谢谢! –