Set Node.js environment variables in WebStorm

28,223

Solution 1

No, it's not possible from WebStorm, environment variables should be defined in your system.

UPDATE: in the new versions it's possible to set environment variables in the Run/Debug configuration.

Solution 2

It is actually possible Here is the official doc: http://www.jetbrains.com/webstorm/webhelp/run-debug-configuration-node-js.html

Here is my screenshotenter image description here

Share:
28,223
Bryan Irace
Author by

Bryan Irace

iOS engineer at Tumblr.

Updated on April 29, 2021

Comments

  • Bryan Irace
    Bryan Irace about 3 years

    Is there any way to set environment variables when running a Node.js app using JetBrains' official Node plugin for WebStorm (and their other IDEs as well)?