# Node.js 运行时对话框

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

> **TL;DR**
> 所需插件：
>
>
>
> JavaScript 和 TypeScript   -  插件与 IntelliJ IDEA 捆绑在一起，并默认启用。
>
>
>
> Node.js  （仅用于开发 Node.js 应用程序） -  在   设置 | 插件   页面上安装插件。 该插件仅在拥有 Ultimate 订阅的 IntelliJ IDEA 中可用。

在 IntelliJ IDEA 2023.3 及以后版本中，支持以下 Node.js 版本：

* Node.js 22 - 当前长期支持（ LTS ）版本

* Node.js 24 - 当前版本

有关更多信息，请参阅 [支持的 Node.js 版本](supported-node-js-versions.html)。

使用此对话框配置 [本地](developing-node-js-applications.html#ws_node_configure_local_node_interpreter) 或 [远程](configure-node-js-remote-interpreter.html) 的 Node.js 运行时环境，或 [适用于 Linux 的 Windows 子系统上的 Node.js](https://docs.microsoft.com/en-us/windows/wsl/about)。

术语  本地 Node.js 运行时环境  表示您的计算机上的 Node.js 安装。 术语  远程 Node.js 运行时环境  表示远程主机或虚拟环境中的 Node.js 安装。

## 开始之前

Procedure:

1. 下载并安装 [Node.js](http://nodejs.org/#download)。

2. 请确保在设置中已启用  Node.js  插件。 按 `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))打开设置，然后选择  `插件` 。 在搜索字段中，输入  Node.js 。 有关插件的更多信息，请参阅 [管理插件](managing-plugins.html)。

3. 如果要配置运行时，请在  `设置 | 插件`  中安装 Node.js 远程解释器插件，如 [从 JetBrains Marketplace 安装插件](managing-plugins.html#install_plugin_from_repo) 中所述。

## 打开 Node.js 运行时对话框

请执行以下操作之一：

Procedure:

* 打开   设置   对话框 ( `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))) ，进入  `语言与框架 | JavaScript 运行时` 。

请确保在   Node.js   字段中选择了   首选运行时  。

点击 ![浏览按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.general.ellipsis.svg) 字段旁的   Node.js 运行时  。

![添加运行时 - 浏览按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/调试配置：Node.js 对话框](run-debug-configuration-node-js.html)中，点击 ![浏览按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.general.ellipsis.svg) 旁边的   Node.js 运行时   字段。

![在 Docker 中的 Node.js：运行/调试配置，配置运行时，选择 添加远程](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ws_node_docker_run_configuration_add_remote.png)

## 配置 Node.js 运行时

Node.js 运行时   对话框列出了当前上下文中可用的所有已配置的本地、WSL 及远程 Node.js 运行时环境。

您可以 [从 Node.js 页面](#ws_node_interpreters_dialog_open_from_settings)或 [从 Node.js 运行配置](#ws_node_interpreters_dialog_open_from_rc)打开对话框。

请使用 !["添加"按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.add.svg)、 !["移除"按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.remove.svg) 和 ![编辑按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.edit.svg) 来添加和删除现有的 Node.js 配置以及根据其设置创建新的配置。

|  !["添加"按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.add.svg)  |  添加  |     点击此按钮将新的 Node.js 运行时环境添加到列表中，并在列表中选择   添加本地  、   添加远程   或   添加 WSL  。       根据您的选择，选择相应的本地 Node.js 安装，或者在 [配置 Node.js 远程运行时对话框](configure-node-js-remote-interpreter.html) 中配置远程运行时，或者在   添加 WSL Node.js 运行时   对话框中指定您使用的 Linux 发行版以及 Node.js 的路径。     |
|  !["移除"按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.remove.svg)  |  删除  |  点击此按钮可从列表中移除所选运行时。  |
|  ![编辑按钮](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.edit.svg)  |  编辑  |  点击此按钮可基于所选运行时复制设置创建新的运行时。  |

## See also

### 语言和框架特定指南

[Node.js](developing-node-js-applications.html)

### 参考

[JavaScript 运行时环境](javascript-runtime.html)

