1
I am taking a Node.JS course the instructor executes the following command to change the environment variable NODE_ENV
:
NODE_ENV=production node index.js
However, this command only works on Linux. On Windows, I get the following message:
'NODE_ENV' is not recognized as an Internal or External command, operable program or batch file.
How to set the environment variable and run the Node application in a single command on Windows?