JetBrains Rider 2018.1 Help

Node.js

Node.js is a lightweight runtime environment for executing JavaScript on the server side. JetBrains Rider integrates with Node.js providing assistance in configuring, editing, running, debugging, testing, profiling, and maintaining your applications.

If you need Node.js only for managing npm packages or running JavaScript linters, build tools, test frameworks, etc., just install Node.js. If you follow the standard installation procedure, in most cases JetBrains Rider detects Node.js itself.

To use Node.js as a runtime for your application, you need to configure it as a local or remote interpreter. To do this, install and enable the NodeJS plugin. The NodeJS plugin is not bundled with JetBrains Rider, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.

Configuring a local Node.js interpreter

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), choose Node.js and NPM under Languages and Frameworks. On the Node.js and NPM page, that opens, click the browseButton next to the Node Interpreter drop-down list.
  2. In the Node.js Interpreters dialog that opens with a list of all the currently configured interpreters, click new on the toolbar. In the dialog box that opens, choose Add Local on the context menu and choose the local installation of Node.js, then click OK. You return to the Node.js Interpreters dialog where the Node interpreter read-only field shows the path to the chosen interpreter.
  3. In the Package manager field, choose the package manager (npm or Yarn) to use in the current project, see Configuring a package manager for a project for details.

    The field is available only if the selected interpreter is of the type local.

When you click OK, you return to the Node.js and NPM page where the Node interpreter field shows the new interpreter.

Using a system Node.js version

With JetBrains Rider, you can set the default system node alias as your project’s Node.js version. This means that if you install a new node version and make it the default in your system, all the tools and run configurations in JetBrains Rider where this system alias is specified in the Node.js interpreter field will use this newer version.

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click Node.js and NPM under Languages and Frameworks. The Node.js and NPM page opens.
  2. From the Node interpreter drop-down list, choose node.
    ws_node_alias.png
  3. Specify this new Node.js interpreter where applicable, e.g. in you run/debug configurations or settings of specific tools.
Last modified: 20 August 2018

See Also