安装 cnpm (淘宝镜像 )#
1 | npm install -g cnpm --registry=https://registry.npm.taobao.org |
查看当前 npm 源#
1 | npm config get registry |
设置 npm 源为淘宝源#
1 | npm config set registry https://registry.npm.taobao.org |
安装 hexo#
1 | cnpm install -g hexo-cli |
初始化博客#
1 | hexo init myblog |