一个搭建个人博客时出的问题
  • 板块灌水区
  • 楼主_QrSn_
  • 当前回复0
  • 已保存回复0
  • 发布时间2022/7/19 18:47
  • 上次更新2023/10/27 19:29:30
查看原帖
一个搭建个人博客时出的问题
511253
_QrSn_楼主2022/7/19 18:47

由于某些原因瞎整然后没有备份导致博客本地文件炸了,我得重新搭建博客

按照https://www.yunyoujun.cn/share/how-to-build-your-site/来搭建的,在2.6部署的时候出了问题

$ hexo g
INFO  Validating config
INFO  Yun version 1.10.4. Guide: https://yun.yunyoujun.cn
INFO  Start processing
INFO  Files loaded in 532 ms
INFO  0 files generated in 4.44 s

$ hexo d
INFO  Validating config
INFO  Yun version 1.10.4. Guide: https://yun.yunyoujun.cn
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
fatal: 发送请求时出错。
fatal: 请求被中止: 未能创建 SSL/TLS 安全通道。
fatal: unable to access 'https://github.com/akioi1/akioi1.github.io/': Failed to connect to github.com port 443 after 21012 ms: Timed out
FATAL {
  err: Error: Spawn failed
      at ChildProcess.<anonymous> (E:\Hexo\akioi1.github.io\node_modules\hexo-util\lib\spawn.js:51:21)
      at ChildProcess.emit (node:events:365:28)
      at ChildProcess.cp.emit (E:\Hexo\akioi1.github.io\node_modules\cross-spawn\lib\enoent.js:34:29)
      at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
    code: 128
  }
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

在我执行-d命令的时候弹出一个窗口,大概是登录,然后我身份验证完毕后又弹出两个框,分别让我填用户名和密码,我填了github账号的密码,然后就出现了这一大串错误提示

另外,_config.yml文件内容:

deploy:
  type: git
  repo: https://github.com/akioi1/akioi1.github.io # 比如:https://github.com/YunYouJun/yunyoujun.github.io
  branch: master # 默认使用 master 分支
  message: 更新/添加/修正一些文章/功能/页面 # 你可以自定义此次部署更新的说明

是因为网络问题吗,如果是,那除了等和某珂学的上网方式,还有其他方法解决吗

2022/7/19 18:47
加载中...