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

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

源码

GitHub

1
hexo init blog

解析

1
2
3
4
5
git clone --depth 1 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 --depth 1 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