解决hexo报错spwan failed {#解决hexo报错spwan-failed}
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Spawn failed at ChildProcess.<anonymous> (D:\Blog\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (node:events:527:28) at ChildProcess.cp.emit (D:\Blog\node_modules\cross-spawn\lib\enoent.js:34:29) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
|
解决方案 {#解决方案}
- 进行以下处理
|--------------------------------------------------------------------------------------------------------------|
| ##进入博客根目录(以我的为例) cd D:\Blog ##删除git提交文件夹 rm -rf .deploy_git/ git config --global core.autocrlf false
|
- 最后重新生成提交
|----------------------------------|
| hexo clean hexo g hexo d
|