Answers for "Cannot find module 'dotnev'"

1

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)
Posted by: Guest on July-30-2021

Code answers related to "Cannot find module 'dotnev'"

Code answers related to "Javascript"

Browse Popular Code Answers by Language