This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Add ability to set environment variables for current Node.js project Run Properties. We can add a field/list: node.js project -> Properties -> Run -> The Env Properties Field Where I can put for axample NODE_ENV=developer, MYAPP_PORT=3000 and get my-app executed like: >set(export) NODE_ENV=developer && set MYAPP_PORT=3000 && node main.js For example take a look at Webstorm's settings.
Does anyone knows any way to do it now? set environment variable first and then start netbeans?
Vote for this please. you either set variables and restart or write custom .sh for linux .bat for windows script like: SET MY_ENV_VAR=1 node and select your script from project properties -> Node js in custom node instead of node directly.