6
votes

The Cloud Functions emulator requires the module "firebase-admin" to be installed. This package is in your package.json, but it's not available. You probably need to run "npm install" in your functions directory.

I was running well my project till i was hit with that issue. Any help, please do tell. Thanks. {Below is the image of what i am getting}

I created a new project in the folder deletetest but it fails at first.

1
"You probably need to run "npm install" in your functions directory." - Renaud Tarnec
I have run, deleted the npm-modules folder, and then run again but still gets the same message. It does not work at all. - Joseph Wambura
I'm getting the exact same issue, it was working last week. - Luke
I have the same problem. Right now, i have to downgrade firebase-tools to version 6.8.0. - HSMPeanut
Stack Overflow isn't really the best place for this question. Please post an issue on the GitHub repo. github.com/firebase/firebase-tools - Doug Stevenson

1 Answers

6
votes

This is a bug in firebase-tools versions 6.9.0 and 6.9.1. The solution is to downgrade to 6.8.0 for now:

npm install -g [email protected]

You can follow along with the issue here: https://github.com/firebase/firebase-tools/issues/1262