Skip to content

Install the Hexo Environment on Ubuntu

1. Install Node.js

sudo apt-get install npm -y

2. Install the Hexo framework

Enter the blog directory and install Hexo:

sudo npm i hexo-cli -g

Install the required components:

sudo npm install

Check whether Hexo was installed successfully:

hexo -v

3. Create a new post

hexo new post "__Post_Name"

4. Deploy the blog

hexo d -g

Ref

[1]. Ubuntu依赖解析和安装