關SSL_ERROR_SYSCALL in connection to github.com:443錯誤的兩種解決方案

文章來源: http://www.silenceboy.com/201...

錯誤來源

使用使用hexo部署博客是,遇到如下錯誤:html

fatal: unable to access 'https://github.com/silenceboychen/silenceboychen.github.io.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous> (/Users/chenhao/new_start/nodejs/blog/node_modules/hexo-util/lib/spawn.js:52:19)
    at ChildProcess.emit (events.js:182:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)

兩種解決方案:

方案一

取消http代理:node

$ git config --global --unset http.proxy
$ git config --global --unset https.proxy

設置env GIT_SSL_NO_VERIFYtrue而後再次部署:git

$ env GIT_SSL_NO_VERIFY=true hexo d

問題解決。github

方案二

在hexo項目的根目錄下的_config.yml文件中把倉庫連接地址由https修改成ssh的地址。hexo

相關文章
相關標籤/搜索