I\'m trying to setup an environment for a Node.js app. but I\'m getting this error every time.
\"NODE_ENV\" is not recognized as an internal or extern
If anyone else came here like me trying to find a solution for the error:
'env' is not recognized as an internal or external command
The reason I got this is that I was migrating an angular solution from a mac development machine over to a windows 10 desktop. This is how I resolved it.
run npm install --save-dev cross-env
go into my package.json file and change all the script references from env to cross-env
Then my commands like: npm run start:some_random_environment_var now run fine on Windows 10.