Node.js
File | Settings | Languages & Frameworks | Node.js for Windows and Linux
CLion | Settings | Languages & Frameworks | Node.js for macOS
CtrlAlt0S
Required plugins:
JavaScript and TypeScript - The plugin is bundled with CLion and enabled by default.
Node.js (only for developing Node.js applications) - Install the plugin on the Settings | Plugins page, tab Marketplace.
Before you start, make sure the Node.js plugin is installed on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace.
The following Node.js versions are supported in CLion 2023.3 and later:
Node.js 20 - the Active Long Term Supported (LTS) version
Node.js 21 - the current version
Learn more from Supported Node.js versions
Item | Description |
---|---|
Node interpreter | In this field, specify the default Node.js interpreter for the current project. CLion automatically uses it every time you select the Select a configured interpreter from the list or click |
Version | This read-only field shows the current version of Node.js. |
Package manager | In this field, choose the package manager (npm, Yarn, or pnpm) for the current project. CLion uses the By default, CLion suggests npm. However, if you open a project with a yarn.lock file and Yarn is installed on your computer, CLion automatically changes the package manager for this project to Yarn. Accordingly, if you open a project with a pnpm-lock file and pnpm is installed on your computer, CLion automatically changes the package manager for this project to pnpm. You can also set Yarn 1 or pnpm as default CLion package manager. |
Thanks for your feedback!