Skip to content

Instantly share code, notes, and snippets.

@somerongit
Created August 25, 2022 09:58
Show Gist options
  • Save somerongit/f1ef2ea75fb9b2d4a12b7c1a81333fcf to your computer and use it in GitHub Desktop.
Save somerongit/f1ef2ea75fb9b2d4a12b7c1a81333fcf to your computer and use it in GitHub Desktop.
node:internal/modules/cjs/loader:936 throw err; Error: Cannot find module 'dotenv'
npm install dotenv
JS ==> require('dotenv').config()
TS ==> import 'dotenv/config'
process.env.PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment