备份hexo源码

进入blog运行下面代码

1
rm -rf Thumbs.db node_modules/ db.json public/ .deploy package-lock.json

备份blog

新电脑

依赖

1
2
git --version
node --version

安装hexo依赖

进入之前拷贝的源码blog

1
npm i

预览

1
npx hexo clean && npx hexo server #清理和启动主题

http://localhost:4000/

参考

https://hexo.io/

https://docs.npmjs.com/