使用Hexo
部署报错
FATAL {
err: Error: Spawn failed
at ChildProcess.<anonymous> (D:\dev\Individual\website-hexo\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.cp.emit (D:\dev\Individual\website-hexo\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12) {
code: 1
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
[1]+ Done hexo clean
解决方案
cd /usr/local/src/hexo/blog/
rm -rf .deploy_git/
git config --global core.autocrlf false
hexo clean && hexo g && hexo d