코딩/WEB
윈도에서 yarn start 안될때
타다키치
2019. 9. 5. 00:37
"NODE_ENV" is not recognized as an internal or external command, operable command or batch file
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 external command, operable command or batch file. ...
stackoverflow.com
I wrote a module for this: win-node-env.
It creates a NODE_ENV.cmd that sets the NODE_ENV environment variable and spawns a child process with the rest of the command and its args.
Just install it (globally), and run your npm script commands, it should automatically make them work.
npm install -g win-node-env