"NODE_ENV" is not recognized as an internal or external command, operable command or batch file

i'm trying to setup environment for node.js app. but i'm getting "NODE_ENV" is not recognized as an internal or external command, operable command or batch file. error every time.

what does this mean and how can i solve this problem.

i'm using windows and also tried set NODE_ENV=development but no luck.

Help!!! thanks in advance.

It sounds like your error comes from an attempt to run something like this (which works in Linux)

NODE_ENV=development node foo.js

the equivalent in Windows would be

SET NODE_ENV=development
node foo.js

running in the same command shell. You mentioned set NODE_ENV did not work, but wasn't clear how/when you executed it.