Thursday, August 1, 2019

Change NODE_ENV=production on windows

Powershell use:

$env:NODE_ENV="production"

CMD use:
set NODE_ENV=production 

or for any environment use, make sure it's the npm package below and NOT the recent malware crossenv: e.g. 'typo squatting'
npm install --save -dev cross-env


No comments:

Post a Comment