# 检测node.js环境

## test\_node的使用

在存放install.sh脚本的目录中,右键打开git bash然后运行以下命令:

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

{% hint style="success" %}
如果出现了如图的情况证明环境变量是配置成功的

(出现了版本号和成功的提示信息代表配置成功)
{% endhint %}

![](/files/-Llum1fgCUk0Unm0jlVo)

{% hint style="info" %}
如果你并发现有版本号的出现,而是红色的错误信息,你可能需要手动配置node.js的环境变量,或者重新安装node.js并注意勾选**Add to PATH**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hexoscript.gitbook.io/hexo-script/1.3-1/shi-yong-bu-zhou/testnode-de-shi-yong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
