How to install Hexo

Follow the steps to install Hexo.

Assumptions:
Nodejs is already installed on target system

  1. This will install Hexo CLI on to your system

    1
    npm install hexo-cli -g
  2. On the parent folder where you want to create your setup for your website. let’s say “mywebsite”. This command will create a folder “website” with all the required files and sub-folders

    1
    hexo init website
  3. Initiate and set up

    1
    2
    cd website
    npm install
  4. Start the server

    1
    hexo server