process.env
is a reference to your environment, so you have to set the variable there.
To set an environment variable in Windows:
SET NODE_ENV=development
on macOS / OS X or Linux:
export NODE_ENV=development
More Related Contents:
- When is .then(success, fail) considered an antipattern for promises?
- How can I run multiple npm scripts in parallel?
- How do I fix CLIENT_MISSING_INTENTS error?
- Multi-row insert with pg-promise
- Render basic HTML view?
- ECMAScript 6 features available in Node.js 0.12
- Can you force Vue.js to reload/re-render?
- How do I remove documents using Node.js Mongoose?
- What is the best way to limit concurrency when using ES6’s Promise.all()?
- TypeError: Router.use() requires middleware function but got a Object
- getting how many people are in a chat room in socket.io [duplicate]
- How can I get city name from a latitude and longitude point?
- Passing a variable from node.js to html
- Modify file in place (same dest) using Gulp.js and a globbing pattern
- How to pass a function in Puppeteers .evaluate() method?
- Next.js ISR ( Incremental Static Regeneration ), how to rebuild or update a specific page manually or dynamically before the interval/ISR time start?
- How to publish a module written in ES6 to NPM?
- Discord API valid intents must be provided for the client [duplicate]
- node.js /socket.io/socket.io.js not found
- A plain JavaScript way to decode HTML entities, works on both browsers and Node
- How do I add an action to watson conversation response?
- Firebase – Get Random Child From Database Node
- Running Node.js in apache?
- Error: 10 ABORTED: Too much contention on these documents. Please try again
- How to mock Axios with Jest?
- how to use jQuery ajax calls with node.js
- MissingSchemaError: Schema hasn’t been registered for model “User”
- Where argument of first next() call goes? [duplicate]
- puppeteer wait for page/DOM updates – respond to new items that are added after initial loading
- NodeJS – setTimeout(fn,0) vs setImmediate(fn)