6

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.

Joseph Wambura
  • 2,732
  • 2
  • 21
  • 24

1 Answers1

6

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 firebase-tools@6.8.0

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

Sam Stern
  • 24,624
  • 13
  • 93
  • 124
  • They have updated, but the bug has now shifted. I hope they're testing this thing before even updating. The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory. i functions: Your functions could not be parsed due to an issue with your node_modules (see above) – Joseph Wambura May 11 '19 at 05:14
  • They have resolved everything, I updated firebase-tools and installed npm package "firebase-functions-test": "0.1.6" in the devDependencies; then deployed and it worked – Joseph Wambura May 11 '19 at 06:06