I'm trying to setup an environment. However, I'm getting the following error every time:
NODE_ENV" is not recognized as an internal or external command, operable command or batch file.
When I added the set before NODE_ENV it showed me only this:
set NODE_ENV=development nodemon -w src --exec "babel-node src --presets es2015,stage-0"
In package.json please add below line and try,
"build": "SET NODE_ENV=production webpack"
If no luck then add below dependency,
"npm i cross-env"
and in package.json,
"start": "cross-env NODE_ENV=development node server.dev.js", "serve": "cross-env NODE_ENV=production node server.prod.js"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With