hexo:更换电脑,如何继续写博客

xiaoxiao2021-02-28  86

1.将你原来电脑上已经配置好并生成的hexo目录拷到你的新电脑上,注意无需拷全部,只拷如下几个目录:

_config.yml package.json scaffolds/ source/ themes/

将这些目录放到一个目录下,如:hexo/

2.在你的新电脑上首先配置hexo环境:安装Node.js

3.安装hexo,执行命令:

npm install -g hexo

4.安装好之后,进入hexo/目录

5.模块安装,执行命令:

npm install npm install hexo-deployer-git --save npm install hexo-generator-feed --save npm install hexo-generator-sitemap --save

6.部署,执行命令:

 hexo g hexo deploy
转载请注明原文地址: https://www.6miu.com/read-20625.html

最新回复(0)