<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q" -->

---
title: Node.js 20.6.0: Say Goodbye to &#x27;dotenv&#x27; | daily.dev
description: Node.js 20.6.0: Say Goodbye to &#x27;dotenv&#x27; - DEV Community Unveiling.0. The new version has built-in support for.env files. This means you don&#x27;t need to rely on...
canonical: https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Node.js 20.6.0: Say Goodbye to &#x27;dotenv&#x27; | daily.dev
og:description: Node.js 20.6.0: Say Goodbye to &#x27;dotenv&#x27; - DEV Community Unveiling.0. The new version has built-in support for.env files. This means you don&#x27;t need to rely on...
og:url: https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q
og:image: https://api.daily.dev/og/posts/FROkM7y6q.png
og:image:alt: Node.js 20.6.0: Say Goodbye to &#x27;dotenv&#x27;
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js 20.6.0: Say Goodbye to 'dotenv'

**[DEV](https://daily.dev/sources/devto)** · 2 min read · 294 upvotes · 22 comments

## Summary

Node.js 20.6.0: Say Goodbye to 'dotenv' - DEV Community Unveiling.0. The new version has built-in support for.env files. This means you don't need to rely on third-party packages for importing and using.env variables in your code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/cjreads665/nodejs-2060-say-goodbye-to-dotenv-2ijl>

## Community discussion

Top comments from developers on daily.dev.

**@pixidream** · 10 upvotes

> bun: you don't need dotenv
> node: wait a minute

**@thoraxcrashandburn** · 9 upvotes

> One package less to install.

**@dharmax** · 6 upvotes

> This is nice, yes, but not a big deal, really...

**@santosism** · 2 upvotes

> Off of graduating a software engineering bootcamp where I always ran into issues remembering dotenv installation and configuring, this sounds great

**@bradscript** · 1 upvotes

> I think it is generally recommended to only use dotenv/.env files for development, at least for nodejs.
>
> For production, use your service or your operating system's environment variable store.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Node.js 20.6.0: Say Goodbye to 'dotenv'","url":"https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q"},"datePublished":"2023-09-10T08:07:09.145Z","dateModified":"2023-09-10T08:07:07.106Z","description":"Node.js 20.6.0: Say Goodbye to 'dotenv' - DEV Community Unveiling.0. The new version has built-in support for.env files. This means you don't need to rely on...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/58c84e3b5aae7342e758b825830866d1?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/58c84e3b5aae7342e758b825830866d1?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto","url":"https://daily.dev/sources/devto"},"commentCount":22,"discussionUrl":"https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":294},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":22}],"keywords":"react,webdev,javascript","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"Node.js 20.6.0: Say Goodbye to 'dotenv'"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/node-js-20-6-0-say-goodbye-to-dotenv--frokm7y6q","comment":[{"@type":"Comment","text":"bun: you don’t need dotenv\nnode: wait a minute","datePublished":"2023-09-11T09:40:34.947Z","dateModified":"2023-09-11T09:40:48.976Z","url":"https://daily.dev/posts/FROkM7y6q#c-FMIATNz2e","author":{"@type":"Person","name":"pixidream","url":"https://daily.dev/pixidream","image":"https://avatars2.githubusercontent.com/u/22185583?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10}},{"@type":"Comment","text":"One package less to install.","datePublished":"2023-09-11T07:35:34.932Z","url":"https://daily.dev/posts/FROkM7y6q#c-es0NFRpLY","author":{"@type":"Person","name":"Serdar Özdemir","url":"https://daily.dev/thoraxcrashandburn","image":"https://lh3.googleusercontent.com/a/AAcHTtdlC0MD61Eb_p017SDta0iZ0BOFB3xxbZCTSUG3r7bB=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9}},{"@type":"Comment","text":"This is nice, yes, but not a big deal, really…","datePublished":"2023-09-10T18:01:08.955Z","url":"https://daily.dev/posts/FROkM7y6q#c-7k1pZxgV9","author":{"@type":"Person","name":"avi tshuva","url":"https://daily.dev/dharmax","image":"https://lh3.googleusercontent.com/a/AGNmyxZ76FOO5TiZHJugAxxnSH-gQSN4NXQUhF1v0olQJb4=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"Off of graduating a software engineering bootcamp where I always ran into issues remembering dotenv installation and configuring, this sounds great","datePublished":"2023-09-11T07:47:31.179Z","url":"https://daily.dev/posts/FROkM7y6q#c-0b81Nz7nT","author":{"@type":"Person","name":"Ismael Santos","url":"https://daily.dev/santosism","image":"https://avatars.githubusercontent.com/u/89656535?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"I think it is generally recommended to only use dotenv/.env files for development, at least for nodejs.\nFor production, use your service or your operating system’s environment variable store.","datePublished":"2023-09-11T12:14:25.043Z","url":"https://daily.dev/posts/FROkM7y6q#c-guaLmXdtD","author":{"@type":"Person","name":"Brad Script","url":"https://daily.dev/bradscript","image":"https://lh3.googleusercontent.com/a/AGNmyxa6VWuPQ61O9XqervTJsjgnpAo4hQHFURZ3ZVeG=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

