Windows development: Fixing the "NODE_ENV is not recognized..." error

Опубликовано: 15 Апрель 2026
на канале: Swashbuckling with Code
17,952
443

'NODE_ENV' is not recognized as an internal or external command

This error occurs on Windows when trying to use the Linux/Mac standard way of setting environment variables. I'll show you how to accomplish setting environment variables in the command prompt on Windows, but then I'll show you a better way for node projects that will work for you locally, and on any Linux server you deploy to.

~~~~~~

00:00 - Purpose of the video
00:27 - Using 'set' in Windows
02:05 - cross-env as the best Node solution
02:47 - Wrap-up

~~~~~~

Webpack Starter Github branch for this code:
https://github.com/Jimmydalecleveland...