While running the script throws cannot find module ‘dotenv’

You should check if dotenv is installed, otherwise type in terminal:

npm install dotenv 

or

npm install --dotenv-extended 

Leave a Comment