环境准备
全局安装 hexo, 需要准备环境 node.js、 git;
Node.js
从Node.js 官网下载地址,下载,双击安装;
进入 cmd 环境下,键入 node -v 查看是否安装成功;
git
参考之前写的文章 Windows 上 Git 安装部署
开始安装
鼠标右击 Git Bash Here,进入 Bash 环境,
先修改安装源
1 | npm config set registry https://registry.npm.taobao.org |
然后,键入
1 | npm install -g hexo |
