错误描述

  在每一次我写好博客,准备上传github时,在我hexo clean+hexo g+hexo s后,按下hexo d之后,果不其然,一串熟悉的报错出现了:

1
2
3
4
5
Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (D:\blogdocuments\blog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:394:28)
at ChildProcess.cp.emit (D:\blogdocuments\blog\node_modules\cross-spawn\lib\enoent.js:34:29)

错误解决

  我搜寻了很多办法之后,发现最好用的还是暴力删除加hexo三联就行(hexo clean+hexo g+hexo s).
1.首先来到你的博客根目录下,找到.deploy_git文件,直接删除,不用害怕,hexo三联之后会重新产生的

2.直接执行hexo三联就好了,之后看到下图就成功了!