> 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/1.3-1/shi-yong-bu-zhou/testnode-de-shi-yong.md).

# 检测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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
