NODE_ENV' is not recognized as an internal or external command, operable program or batch file. code example
Example 1: 'NODE_ENV' is not recognized as an internal or external command
npm install -g win-node-env
This will solve problem
if not for windows use below commands
set NODE_ENV=something node filename.js
Example 2: 'npm' is not recognized as an internal or external command, operable program or batch file.
path -> C:\Program Files\nodejs\
To the end of your Path variable on the "User variable" section of the Environment Variables on the System Properties.
After that, reopen your command prompt and type
npm