Project configuration under windows: 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.

Configuration in mac environment

"start:dev": "NODE_ENV=development nest start --watch",
The MAC environment was executed successfully!
But the window prompts: 'NODE_ENV' is not an internal or external command, nor is it a executable program or batch file.

Question modification

The window environment needs to be configured as:

"start:dev": "set NODE_ENV=development && nest start --watch",

Guess you like

Origin blog.csdn.net/shengmeshi/article/details/128782595