0%

使用淘宝源安装 Hexo

安装 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
2
3
hexo init myblog
cd myblog
cnpm install

其他配置参看 https://hexo.io/zh-cn/docs/setup.html