Im having trouble while serving or deploying Firebase Hosting Functions

谁说胖子不能爱 提交于 2019-12-06 03:16:02

问题


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}


回答1:


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



来源:https://stackoverflow.com/questions/56056244/im-having-trouble-while-serving-or-deploying-firebase-hosting-functions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!