错误如下

Error: Spawn failed
at ChildProcess.<anonymous> (/usr/local/src/hexo/hanyubolg/node_modules/hexo-util/lib/spawn.js:51:21)
at ChildProcess.emit (events.js:376:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
code: 128
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

解决方法

有可能是你的git repo配置地址不正确,可以将http方式变更为ssh方式,如图

image-20230222194656561

deploy:
type: 'git' # 这是固定的
repository: #这里是你的仓库的地址,根据你自己实际的地址,进行添加
branch: main

如果更改过一次,再更改一次即可。