hexo构建与部署 发表于 2023-07-29 更新于 2023-11-09 分类于 踩坑合集 许久不更新GitHub上部署的内容了,最近打算更新一下。刚好记录整个流程。 hexo常用命令 启动本地服务 12cd ../bloghexo s Github Pages部署 1234567891011121314hexo clean # 清除生成的:db.json 和 public文件夹的所有内容hexo g # 生成新的:db.json 和 public文件夹hexo d # 生成 .deploy_git 文件夹# 可能会报错: Error: Spawn failed# at ChildProcess.<anonymous> (/Users/zhouguangdi/Documents/data_for_software/hexo/blog/node_modules/hexo-util/lib/spawn.js:51:21)# at ChildProcess.emit (node:events:513:28)# at ChildProcess._handle.onexit (node:internal/child_process:293:12)# 这样的情况下,进行如下操作:cd ./.deploy_gitgit config core.precomposeunicode falsecd ../# 然后重新输入hexo d