I am using webstorm and i tried to set the environment variable using
set NODE_ENV=development
and when i check the for environment variable using
echo%NODE_ENV%
i get development as the answer.
But in my node application when i check for the variable using
var b= process.env.NODE_ENV;
i get
b:undefined
I even tried using the following in the package.json file
"start": "set node ./bin/www && NODE_ENV=production "
still i am getting undefined. I dont know whats the problem here.