cannot find module dotenv
There are so many repairs:
npm install dotenv
npm install --dotenv-extended
This worked for me ↓:
npm install dotenv @latest
*****
And the file must require 'dotenv' like this
require('dotenv').config()
console.log(process.env.YOURENVVARIABLE)