In the dialog that opens, specify the URL of the application starting page, for example, localhost:3000 for Express applications, and the browser to use. Click to expand the Before launch area, click, and select Launch Web Browser from the list. To open the application in the browser automatically, configure a before-launch task. In the Application parameters field, specify the Node.js-specific arguments to be passed to the application on start through the process.argv array. For example, you may want to enable an experimental Node.js feature or pass another option, see the Node.js official website for details.
Specify the Node Parameters that customize the start of Node.js. In the JavaScript File field, specify the path to the main file of the application that starts it (for example, bin/www for Express applications).
#Phpstorm nodejs windows#
This can be a local Node.js interpreter or a Node.js on Windows Subsystem for Linux. The Run/Debug Configuration: Node.js dialog opens. In the Edit Configurations dialog that opens, click on the toolbar and select Node.js from the list. Alternatively, select Edit Configurations from the list on the toolbar. Create a Node.js run/debug configurationįrom the main menu, select Run | Edit Configurations. PhpStorm also uses this configuration to start the debugger together with Node.js applications. PhpStorm runs Node.js applications according to a run configuration of the type Node.js. Make sure the Node.js plugin is enabled on the Settings/Preferences | Plugins page, tab Installed.
You can debug applications that are started from PhpStorm as well as attach to already running applications.
PhpStorm helps you run and debug your Node.js applications.