准备工具

以下均是必装的

Git工具

本脚本所有测试均在git bash上运行,建议使用git工具运行最佳。下载地址:

Git官网下载:https://git-scm.com/

国内镜像下载:https://npm.taobao.org/mirrors/git-for-windows/v2.22.0.windows.1/Git-2.22.0-64-bit.exe

国内其他版本下载:https://npm.taobao.org/mirrors/git-for-windows/

Node.js

您需要安装node.js才能使用和安装hexo博客,无论是使用和不使用本脚本,都是必须安装的,下载地址:

http://nodejs.cn/download/

下载[hexo-script]的安装脚本

你只需要在某个目录下,打开git bash然后执行下面这条命令即可下载完成

curl -O https://cdn.jsdelivr.net/gh/kjhuanhao/hexo-script/install.sh

如图:我创建了一个[myblog]文件夹,然后在此文件夹下右键打开git bash

然后运行了下载命令,安装脚本(install.sh)就会下载在你的当前文件夹中

Last updated

Was this helpful?