0%

[problems solution] hexo部署Spawn failed

问题描述#

执行hexo g -d部署时, 有如下报错

1
2
3
4
5
6
7
8
9
10
fatal: Authentication failed for 'https://github.com/sysuleo/sysuleo.github.io.git/'
FATAL {
err: Error: Spawn failed
at ChildProcess.<anonymous> (E:\sysuleo.github.io_resource\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.cp.emit (E:\sysuleo.github.io_resource\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {
code: 128
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

问题解决#

  1. 删除.deploy_git文件夹;
  2. 输入
    1
    git config --global core.autocrlf false
  3. 依次执行:
    1
    2
    3
    hexo clean
    hexo g
    hexo d

参考连接#

  1. HEXO进行部署时候出现错误,该如何解决
  2. hexo发生error:spawn failed错误的解决方法