图片来源:解决使用Hexo搭建个人博客遇到的一些问题_hexo d 连不上github-CSDN博客
如果你在使用Hexo+GitHub做博客时遇到了这个问题!那么,有99%的概率不是你的问题!
你在更新发布博客文章时使用 hexo clean + hexo g + hexo d 时,最后hexo d部署至GitHub是不是会出现这个报错:
FATAL Something’s wrong. Maybe you can find the solution here:https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess. (C:\blog\myblog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:314:20)
at ChildProcess.cp.emit (C:\blog\myblog\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
!!!注意!!!
这大概率不是你的问题!这是GitHub服务器连接的问题!
众所周知GitHub在大陆不使用VPN,直连的话 https://github.com/ 官网有可能打不开,能不能打开全凭运气,通常会使用VPN来加速访问GitHub
你在浏览器无法打开GitHub官网时, hexo d 部署至GitHub时大概率会出现“something’s wrong/spawn failed”这个报错,这是因为无法连接至GitHub的服务器
解决方法:
- 等待片刻后尝试再次在浏览器打开GitHub的官网,若能打开便可以 hexo d 部署至GitHub,此时大概率会成功
- 挂靠谱的VPN!(很多VPN都不管用!机场还有Steam++就是Watt Toolkit的GitHub/github.io专项加速也不行!とらえ只试过ProtonVPN可以)只要是靠谱的VPN,能够在浏览器打开GitHub官网便可以hexo d 部署至GitHub
!!!注意!!!
如果VPN不行的话!请关掉它!裸连效果是最好的!只要能在浏览器打开GitHub官网就大概率能够 hexo d 部署至GitHub
如果没有使用任何可以加速GitHub的工具(包括VPN/机场/专项加速器)并且浏览器可以正常访问GitHub官网,此时仍旧 hexo d 部署至GitHub出现“something’s wrong/spawn failed”这个报错,那么这道题就无解了,因为这不是你的问题!这是GitHub的问题,唯一的解决方法就是等几天(とらえ等了整整一个星期)它自己就好了
以上内容是とらえ画了近十个小时上网查找相关问题的解决方法以及亲身经历总结出来的,如有问题还请指正
参考文献:
解决使用Hexo搭建个人博客遇到的一些问题_hexo d 连不上github-CSDN博客
FATAL Something’s wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Spawn failed - CSDN文库
Hexo-d 报错 fatal: unable to access ‘https://github.com/xx/xx.github.io/‘_hexo fatal: unable to access-CSDN博客
hexo d命令报错,FATAL Something‘s wrong. Maybe you can find the solution here_hexo d 报错-CSDN博客
FATAL Something‘s wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting._ing stream fatal something’s wrong. maybe you can -CSDN博客
FATAL Something’s wrong. Maybe you can find the solution here: https://hexo.io/docs/troublesho oting.html Error: Spawn failed at ChildProcess.(D:\myblog\cheng\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at cp.emit (D:\myblog\cheng\node_modules\cross-spawn\lib\enoent.js:34:29) at ChildProcess._handle.onexit (node:internal/child_process:291:12) - CSDN文库
搭建hexo博客时出现spawn failed怎么解决? - 知乎
解决hexo报错spwan failed - CairBin - 博客园
hexo部署(hexo d)报错 FATAL { err: Error: Spawn failed-阿里云开发者社区
故障排除 | Hexo
解决一个Hexo deploy报错问题 | Hexo