Closed ForNeVeR closed 7 years ago
Windows users are reporting that they are unable to execute npm run prod because prod script if defined as NODE_ENV=prod node app.js in our package.json.
npm run prod
prod
NODE_ENV=prod node app.js
package.json
We need to use cross-env to set the environment variable uniformly across the platforms.
cross-env
Windows users are reporting that they are unable to execute
npm run prod
becauseprod
script if defined asNODE_ENV=prod node app.js
in ourpackage.json
.We need to use
cross-env
to set the environment variable uniformly across the platforms.