I am developing in node.js and wanted to take into account both production and development environment. I found out that setting NODE_ENV while running the node.js server do
Sometimes this can be fixed by using win-node-env if your running on windows, For using it just run the below command.
npm install -g win-node-env