---
description: The following are all required
---

# Prepare the necessary tools

## Git tools

All tests of this script are run on git bash, and it is recommended to run git best.Download address:

> Git official website download：[https://git-scm.com/](https://git-scm.com/)
>
> Domestic mirror download：[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/v2.22.0.windows.1/Git-2.22.0-64-bit.exe)
>
> Domestic other version downloads：[https://npm.taobao.org/mirrors/git-for-windows/](https://npm.taobao.org/mirrors/git-for-windows/)

{% hint style="info" %}
The suggestion USES domestic mirror to download, the speed is the fastest! Please install after downloading
{% endhint %}

## Node.js

To use and install the hexo blog, you need to install node.js:

> [http://nodejs.cn/download/](http://nodejs.cn/download/)

{% hint style="info" %}
Setup is recommended.To install, check the Add to PATH option.
{% endhint %}

## Download the installation script for \[hexo-script]

All you need to do is open git bash in a directory and execute the following command to download it

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

Instead, go directly to [**releases**](https://github.com/kjhuanhao/hexo-script/releases) and go with the latest version by downloading install.sh

![install.sh](https://2469997499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-Llz5MvUaxJN5PhxsYY1%2F-Llz6JJCocpELXFXMiCv%2F66.png?alt=media\&token=37c066e7-e963-42ff-adf5-10ad0dec770f)

{% hint style="info" %}
It is recommended to create a new directory for this installation script, preferably where you want to store your blog files.
{% endhint %}

Here I create a \[myblog] folder and right-click git bash under it

![](https://2469997499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-LluijETOwVdISk9cx63%2F-LlujpjLExHk7K73O-Gb%2F1.png?alt=media\&token=19632c44-33dd-4025-a8e5-2042e219ff98)

Then run the download command, and the install script (install.sh) will be downloaded in your current folder

![](https://2469997499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-Llujyttm0BWO_RMRg-2%2F-LlukgEwkesx8NRKmBdo%2F2.png?alt=media\&token=ec7c6fd6-108a-4161-a3d5-1a67438fa83d)

