Follow these instructions to install and configure the Hexo blog framework on Windows.
Make sure to allow Node.js Windows Firewall access.
Verify the installation by running the following commands inside the Git Bash:12node -vnpm -v
For those re-installing Hexo and using an existing hexo blog repository:
- do NOT create the directory described step 1 but checkout your blog repo instead
- cd into your repo directory and git checkout the
- then simply follow the exact same steps (starting from 2) but SKIP the
Please note that all commands are to be executed within the Git Bash.
Create a new directory that will hold your blog12mkdir myblogcd myblog
Install the hexo framework and the git deployer123npm install hexo-cli -gnpm install hexo-deployer-git --savehexo -v
Initialize your blog123hexo initnpm installhexo serve
Now browse to
http://localhost:4000and enjoy your first blog
You’re good to go, next steps would be:
_config.ymlto your likings
- creating your first post by running
The hexo git deployer has taken all the hard work out of deploying your blog to your master repo.
First load your Github private key inside the Git Bash12eval `ssh-agent`ssh-add ~/.ssh/github_rsa_key
Now simply generate and deploy your blog1hexo generate -d