我在服务或部署Firebase托管功能时遇到问题 [英] Im having trouble while serving or deploying Firebase Hosting Functions

查看:59
本文介绍了我在服务或部署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.06.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

这篇关于我在服务或部署Firebase托管功能时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆