For Firebase, you need to run the download commands like "sudo npm install dotenv --save" inside the functions folder; otherwise, it won't work. This was the issue that I just had.