我在服务或部署Firebase托管功能时遇到问题
Cloud Functions仿真器需要模块"firebase-admin"来 被安装.这个包在你的package.json中,但是不是 可用的.您可能需要在函数中运行"npm install" 目录.
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}
这是firebase-tools
版本6.9.0
和6.9.1
中的错误.解决方法是暂时降级为6.8.0
:
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
您可以在此处关注该问题: https://github.com/firebase/firebase-tools/issues/1262
You can follow along with the issue here: https://github.com/firebase/firebase-tools/issues/1262