是否安装了git?
git --version
是否安装了node.js?
node -v
$ npm install hexo-cli -g
$ hexo init blog
$ cd blog
$ hexo server
对应的目录 :blog/_config.yml
deploy:
type: git
repo: [email protected]:username.github.io.git
branch: master
$ cd themes
$ git clone https://github.com/iissnan/hexo-theme-next next
$ npm install hexo-deployer-git --save
$ hexo g
$ hexo d