Install node.js with nvm

nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash

nvm install stable

Install hero

hexo
hexo docs

npm config set registry http://registry.cnpmjs.org 
or
npm install -g hexo-cli --registry=http://r.cnpmjs.org 

$ hexo init <folder>
$ cd <folder>
$ npm install

常用命令

hexo clean

hexo generate

hexo deploy

Deploy With Git

$ npm install hexo-deployer-git --save

deploy:
    type: git
    repo: <repository url>
    branch: [branch]

_config.xml 严格的格式要求
注意 : 后面有个空格

博客地址: https://daaoling.github.io/

参考

Hexo常见问题解决方案

https://zhuanlan.zhihu.com/p/22498474

注释和共享

  • 第 1 页 共 1 页

张洁勇

生活在未来,希望在现在


游戏开发工程师


杭州