彻底解决 hexo init 卡顿问题

[TOC]

hexo init blog卡住?Google谷姐没好办法,分享下自己办法(其实是在翻译源码换gitee源)

1
2
3
4
5
6
7
8
npm install hexo-cli -g
git clone https://gitee.com/weilining/hexo-starter.git blog
cd blog
git submodule init
git submodule update
npm config set registry http://registry.npm.taobao.org
npm i
hexo server

源码

GitHub

1
hexo init blog

解析

1
2
3
4
5
git clone https://github.com/hexojs/hexo-starter.git blog
cd blog
git submodule init
git submodule update
npm i

换gitee

1
2
3
4
5
6
git clone https://gitee.com/weilining/hexo-starter.git blog
cd blog
git submodule init
git submodule update
npm config set registry http://registry.npm.taobao.org
npm i

参考

Git 工具 - 子模块

hexojs