51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

hexo提交报错

解决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 |

赞(0)
未经允许不得转载:工具盒子 » hexo提交报错