安装与设置hexo

普通用户(非全局)安装nodejs和npm

wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
nvm install stable

安装hexo

npm install -g hexo-cli

在库的路径下

npm install

... 这里生成目标html

在库的路径下,配置好主题以后,安装deployer

npm install hexo-deployer-git --save
原文地址:https://www.cnblogs.com/clor001/p/7840079.html