> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gogogotoken.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 环境配置

> 安装 Node.js 18+ 环境，为后续 CLI / 脚本使用做准备

使用 gogogotoken 提供的 API 前，需要安装 **Node.js 18 或更高版本**。后续的 CLI / 脚本都会用到。

## 检查是否已安装

在 Windows / macOS / Linux / WSL2 下输入以下命令：

```bash theme={null}
node --version
npm --version
```

<Check>
  如果有版本号输出（例如 `v18.x.x`），表示已安装，可跳过本节。
</Check>

<Warning>
  如果没有版本号输出，说明未安装，请按以下对应系统安装。
</Warning>

## 安装 Node.js

<Tabs>
  <Tab title="Windows">
    1. 访问 [Node.js 官网下载页](https://nodejs.org/en/download)
    2. 下载 LTS 版本并安装（`.msi`）
    3. 或使用包管理器：

    ```powershell theme={null}
    choco install nodejs
    # 或
    scoop install nodejs
    ```
  </Tab>

  <Tab title="macOS">
    ```bash theme={null}
    brew update
    brew install node
    ```
  </Tab>

  <Tab title="Linux / WSL2">
    ```bash theme={null}
    curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
    sudo apt-get install -y nodejs
    ```
  </Tab>
</Tabs>

安装完成后重新运行 `node --version` 验证。
