DEV Community

Discussion on: Build a CLI with Node.js

Collapse
rushankhan1 profile image
Rushan Khan Author • Edited on

Thanks for reading!
Have you tried setting the exact path of your .env file in the .env config as so:

require('dotenv').config({ path: '/absolute/path/to/your/.env/file' })
Enter fullscreen mode Exit fullscreen mode