CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

npm, pnpm, and Yarn

Last modified: 11 October 2023

CLion integrates with the npm, pnpm, Yarn, Yarn 2, and Yarn 3, so you can install, locate, update, and remove packages of reusable code from inside the IDE, in the built-in Terminal.

CLion also lets you run and debug npm, Yarn, and pnpm scripts. CLion parses package.json files, recognizing definitions of scripts, shows scripts in a tree view, and lets you navigate between a script in the tree and its definition in the package.json file. For more information, refer to npm, Yarn, and pnpm official websites.

CLion detects projects with Yarn workspaces and indexes all the dependencies that are listed in the package.json files of the workspaces but are located in the root node_modules folder.