Hexo - Tools & cmd used during deployment

Ref: https://caiyantao.gitee.io/2019/04/13/Hexo-%E4%B8%80/

npm CN image(taobao)

1
$ npm install -g cnpm --registry=https://registry.npm.taobao.org

Hexo installation

1
$ cnpm install -g hexo-cli

check if successfully installed

1
$ hexo -v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
hexo: 3.9.0
hexo-cli: 2.0.0
os: Windows_NT 10.0.16299 win32 x64
http_parser: 2.8.0
node: 10.16.0
v8: 6.8.275.32-node.52
uv: 1.28.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.15.0
modules: 64
nghttp2: 1.34.0
napi: 4
openssl: 1.1.1b
icu: 64.2
unicode: 12.1
cldr: 35.1
tz: 2019a
### Local init for first time setup
1
$ hexo init
### Start server and Run in browser
1
$ hexo s
Visit

Add ssh-key

Pass

When error generated (local compile)

1
2
3
$ hexo clean
$ hexo g # gengerate post to public folder
$ hexo s

Deploy to github

1
$ hexo d