【Hexo】 Error:Spawn failed at ChildProcess

hexo d -g执行后报错:Spawn failed

1
2
3
4
5
6
7
8
9
10
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (D:\OtherFiles\blog\myblog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:203:13)
at ChildProcess.cp.emit (D:\OtherFiles\blog\myblog\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

在.git文件夹下打开config配置文件,在[core]中添加上下面两句话:
autocrlf = false
safecrlf = false

成功。