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

使用 Node.js SDK 之前，需要先参考本文档安装 Node.js SDK。
## 环境准备 {#672bb69e}
Node.js SDK 适用于 Node.js 14 及以上版本，支持大部分的主流浏览器。安装 Node.js SDK 之前，建议执行以下命令确认已安装 Node.js 14 及以上版本。
```Bash
# View the Node.js version
node --version

# Returned information shows the 18.19.1 version installed
v18.19.1
```

## 安装 Node.js SDK {#a6d614ad}
可以使用 npm 或 pnpm 等包管理工具安装 Node.js SDK。执行以下命令，安装 Node.js SDK。
:::notice 注意
* Node.js SDK 依赖 axios 请求库。如果项目中未安装 axios，请安装该请求库。
* 安装 Node.js SDK 时，默认安装最新版本。可以[点击此处](https://www.npmjs.com/package/@coze/api?activeTab=versions)查看 Node.js SDK 已发布的所有历史版本。更多信息，请参见 [README](https://github.com/coze-dev/coze-js/tree/main/packages/coze-js)。
:::
```Bash
npm install @coze/api

# Install axios
npm install axios
```


