关于将基于hexo的博客部署到github出现Error: Spawn failed的解决

  完整报错如下

fatal: unable to access 'https://github.com/moyidou/moyidou.github.io.git/': OpenSSL SSL_read: Connection was reset, errno 10054
FATAL {
  err: Error: Spawn failed
      at ChildProcess.<anonymous> (D:\TheNewLife\LearningNotes\GithubBlog\blog\node_modules\_hexo-util@2.5.0@hexo-util\lib\spawn.js:51:21)
      at ChildProcess.emit (node:events:394:28)
      at ChildProcess.cp.emit (D:\TheNewLife\LearningNotes\GithubBlog\blog\node_modules\_cross-spawn@7.0.3@cross-spawn\lib\enoent.js:34:29)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
    code: 128
  }
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

 

  原因是应该使用ssh?不知道为什么...

posted @ 2021-09-11 11:32  Moyidoudouzi  阅读(651)  评论(0)    收藏  举报