http://nodejs.org/css
npm install -g hexo
bolg
文件夹安装完成后在本身的工做目录建立一个文件夹node
D:\work>mkdir blog D:\work>cd blog D:\work\blog>hexo init #初始化 [info] Copying data [info] You are almost done! Don't forget to run `npm install` before you start b logging with Hexo! D:\work\blog>npm install #安装依赖 hexo-renderer-marked@0.1.0 node_modules\hexo-renderer-marked ├── marked@0.3.2 └── lodash@2.4.1 hexo-renderer-ejs@0.1.0 node_modules\hexo-renderer-ejs ├── ejs@1.0.0 └── lodash@2.4.1 hexo-renderer-stylus@0.1.0 node_modules\hexo-renderer-stylus ├── stylus@0.44.0 (css-parse@1.7.0, mkdirp@0.3.5, sax@0.5.8, debug@2.1.0, glo b@3.2.11) └── nib@1.0.4 (stylus@0.45.1)
执行完上面的命令,就已经搭了一个本地的hexo环境,在当前目录输入命令git
hexo generate hexo server
访问 http://localhost:4000/
,这时候本地的bolg就搭建好了。github
参考http://zipperary.com/2013/05/29/hexo-guide-3/npm
在 https://github.com/hexojs/hexo/wiki/Themes 能够找到喜欢的主题
使用git命令下载好比pacman
这个主题hexo
$ git clone https://github.com/A-limon/pacman.git themes/pacmanide
hexo d -g