Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Im having trouble while serving or deploying Firebase Hosting Functions

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.

like image 241
Joseph Wambura Avatar asked May 09 '19 09:05

Joseph Wambura


1 Answers

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

like image 129
Sam Stern Avatar answered Oct 13 '22 01:10

Sam Stern