使用Hexo写博客

install nvm:

1
$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

install Node.js:

1
$ nvm install stable

install cnpm:

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

install hexo-cli:

1
$ cnpm install -g hexo-cli

init a hexo blog:

1
2
3
4
$ mkdir blog-dir
$ cd blog-dir
$ hexo init
$ cnpm install

resource

吴羽舒 wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!