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