Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

windows launch node with variables

#Powershell
$env:NODE_ENV="production"; node .index.js

#or with NPM

$env:NODE_ENV="production"; npm start

#CMD
set NODE_ENV=production && node .index.js

#or with NPM
setn NODE_ENV=production && npm start
 
PREVIOUS NEXT
Tagged: #windows #launch #node #variables
ADD COMMENT
Topic
Name
1+8 =