hexo部署事故(一)


使用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

文章作者: rudy
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 rudy !
  目录