Specify a name for the run/debug configuration to quickly identify it when editing or running the configuration, for example, from the Run popup Alt+Shift+F10. When you edit a run configuration (but not a run configuration template), you can specify the following options: NODE_DISABLE_COLORS: Set to 1 to disable colors in the REPL. NODE_MODULE_CONTEXTS: Set to 1 to load modules in their own global contexts. NODE_PATH: A : -separated list of directories prefixed to the module search path. The definitions of variables are displayed in the Environment variables read-only field with semicolons as separators, for example: To discard a variable definition, select it in the list and click. To define a new variable, click and specify the variable name and value. Click Browse to the right of the field and configure a list of variables in the Environment Variables dialog, that opens: In this field, specify the environment variables for the Node.js executable file, if applicable. You can also choose the relevant package alias ( npm or yarn) or specify an explicit path to a custom installation of a package manager. If you choose the Project alias, WebStorm will use the default project package manager from the Node.js page. Otherwise, by default the debug process will use V8 Debugging Protocol. Use -inspect or -inspect-brk parameter when you are using Node.js v7 for Chrome Debugging Protocol support.
Therefore make sure you have the coffeescript package installed locally as described in Install the CoffeeScript compiler. This mode requires that the register.js file, which is a part of the coffeescript package, is located inside your project. Use -require coffeescript/register to have CoffeeScript files compiled into JavaScript on the fly during run. In this text box, type the Node.js-specific command-line options to be passed to the Node.js executable file.
This can be a local Node.js interpreter or a Node.js on Windows Subsystem for Linux. In this field, specify the Node.js interpreter to use. Learn more from the npm official website. In this field, specify the command-line arguments to execute a script with. The list contains all the scripts defined within the scripts property in the package.json file. Learn more at npm documentation, under the section CLI Commands.įrom this drop-down list, choose the script to which the chosen command will be applied. Choose the file from the drop-down list which shows all the package.json files detected in the current project or click and choose the required package.json in the dialog box that opens.įrom this list, choose the npm CLI command to execute, by default run-script is selected. In this field, specify the package.json file to run the scripts from.