> For the complete documentation index, see [llms.txt](https://hexoscript.gitbook.io/hexo-script/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hexoscript.gitbook.io/hexo-script/shi-yong-bu-zhou/testnode-de-shi-yong.md).

# Detect the node.js environment

Detect whether the environment variable of node.js has been configured successfully

## test\_node

In the directory where the install.sh script is stored, right-click git bash and run the following command:

```bash
source install.sh test_node
```

{% hint style="success" %}
The environment variable is configured successfully if the picture appears(the version number and successful prompt indicates successful configuration)
{% endhint %}

![](https://2469997499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-Llul9Kdh1NJmVlnXuGd%2F-Llum1fgCUk0Unm0jlVo%2F3.png?alt=media\&token=6a788601-ff5f-4f61-8862-7b179074e1c2)

{% hint style="info" %}
If you are concurrent with an existing version number and it appears with a red error message, you may need to manually configure the environment variable for node.js, or reinstall node.js and check **Add to PATH**
{% endhint %}
