bilal-korir
7/14/2018 - 10:59 AM

Node.js environment variables

Set Node.js environment variables in the bash shell on Linux and Mac, (and Windows)

######################### Linux & Mac ############################

Set Node.js environment variable

$ export NODE_ENV=production $ export NODE_ENV=development

Show the envirenment variable's value

$ echo $NODE_ENV

Remove Node.js environment variable

$ unset NODE_ENV

######################### Windows ################################

Set Node.js environment variable

set NODE_ENV=production set NODE_ENV=development