1. 安装Nodejs

官网下载安装包

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -

sudo apt-get install -y nodejs

2. 安装Hexo

sudo npm install hexo-cli -g

sudo npm install hexo -g

3. 克隆项目

github项目下载到本地并拉取子模块

git clone git@github.com:WbLv66/hexo.git

cd hexo

git submodule update --init

4. 恢复博客

npm install

npm install hexo-deployer-git

参考
Hexo博客的备份与恢复