hexo deply问题

针对此方面问题首先确定是否是因为github或者Vercel被墙了,使用电脑cmd命令ping一下网站,如果没有问题继续下面步骤:

终端提示:

1
2
3
4
5
6
7
8
9
err: Error: Spawn failed
at ChildProcess.<anonymous> (E:\hexo-zkf2.0\Hexo-zkf-2.0\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.cp.emit (E:\hexo-zkf2.0\Hexo-zkf-2.0\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
code: 128
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/trouble
shooting.html

解决办法:
出现这种错误,可能是.deploy_git文件出现变动或者误删改造成的,可以采用如下解决办法:
参考文献

  1. 进入hexo根目
  2. 直接暴力删除 .deploy_git和public文件
  3. 暴力三连 hexo c hexo g hexo d

提示:部分地区可能由于使用5G网络原因造成错误,建议更滑网络重新三连