hexo博客迁移

hexo 博客迁移

  1. 从原电脑下载源码,删除 node_modules 文件夹,然后重新下载
  2. 准备好 git 和 node.js,然后进入相应文件夹,用 git 打开,输入如下命令:
npm install hexo-cli -g
npm install
npm install hexo-deployer-git -g
  1. 此时如果使用主题,需要把删除 node_modules 中的主题重新粘贴替换进来,主题文件就正常了。
  2. 测试,用 hexo s 来看到你的博客是否迁移成功
  3. 设置 git
git config --global user.name "xxx"
git config --global user.email "xxx@xx.com"
git init
  1. 编辑文章后,hexo d 上传成功即说明迁移成功

hexo博客迁移
https://k3ppf0r.pages.dev/2019/01/22/杂项配置/hexo博客迁移/
作者
k3ppf0r
发布于
2019年1月22日
许可协议