step1:先在 https://nodejs.org 中下载nodejs,安装好以后在cmd中输入 node -v 看看node是否已经安装完毕
step2:用管理员模式打开cmd,接着在cmd中输入 npm install -g cnpm –registry=https://registry.npm.taobao.org
step3: 在cmd中继续输入 cnpm install -g hexo-cli
step4: 在随便一个盘(最好不要在C盘中创建)中创建一个叫做Blog的文件夹
step5: 在cmd中进入该文件夹,然后在输入 hexo init
step6:到了这一步已经可以看你的博客最初模样了,在cmd中输入 hexo S,然后在浏览器中进入 localhost:4000,现在你就可以看到hexo为你创建的博客原型了
step7:接着在cmd中输入 hexo clean 清理一下hexo,然后输入 hexo g 创建博客网页
step8: 在cmd中输入 cnpm install –save hexo-deployer-git
step9:在github中创建一个账号,并且创建一个空仓库,记住仓库的HTTPS
step10:在cmd中输入 hexo d,接下来cmd中就会提示让你输入你的github的邮箱以及密码,输入完以后再 hexo d
step11:接下来你就可以去网页看到你的博客了