问题描述#
执行hexo g -d部署时, 有如下报错 1
2
3
4
5
6
7
8
9
10fatal: 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
问题解决#
- 删除.deploy_git文件夹;
- 输入
1
git config --global core.autocrlf false
- 依次执行:
1
2
3hexo clean
hexo g
hexo d