puppeteer – While running the script throws cannot find module dotenv

puppeteer – 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 

I was also facing the same problem when I delete the package-lock.json file and create a new one. To fix this run the following cmd:

 npm install dotenv

Try to install again even if you have to installed dotenv.

puppeteer – While running the script throws cannot find module dotenv

Leave a Reply

Your email address will not be published.