How can I define the NODE_ENV variable on macOS to “development” by default?
I ran into an issue where running ‘npm install’ no longer installs my devDependencies and after some digging I noticed that when I run ‘echo $NODE_ENV’ is shows ‘production’.
I’m able to run this command to switch it:
export NODE_ENV=development
But that’ll disappear on each restart.
Is there a way to have it so my local is always running development? For me there’s no reason why I’d have production set and if for whatever reason I did need it I would prefer to have to enable it vs disabling it each time.