PhpStorm 2017.3 Help

Node.js

In this section:

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

Before you start

  1. Download and install the Node.js runtime environment.
  2. Make sure the NodeJS plugin is enabled. The NodeJS plugin is activated by default. If the plugin is disabled, enable it on the Plugins settings page as described in Enabling and Disabling Plugins.

Quick start with a Node.js application

PhpStorm makes it easier to create, run, debug, and test Node.js applications. Here we will use a simple Express application as an example.

To create an application

  1. Choose File | New Project on the main menu or click Create New Project on the Welcome screen. The Create New Project Dialog opens.
  2. In the left-hand pane, choose Node.js Express App.
  3. In the right-hand pane, specify the project folder, the Node.js interpreter, and the version of express=generator to use. In the Options area, choose the template and the CSS to use.
  4. When you click Create, PhpStorm generates a Node.js Express-specific project with all the required configuration files.

Last modified: 3 November 2017

See Also