node.js - 我在服务或部署 Firebase 托管功能时遇到问题

标签 node.js firebase google-cloud-functions firebase-admin firebase-tools

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 created a new project in the folder deletetest but it fails at first.

最佳答案

这是 firebase-tools 版本 6.9.06.9.1 中的错误。解决方案是暂时降级到 6.8.0:

npm install -g firebase-tools@6.8.0

您可以在此处关注此问题: https://github.com/firebase/firebase-tools/issues/1262

关于node.js - 我在服务或部署 Firebase 托管功能时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56056244/

相关文章:

node.js - 专业人员如何处理数千、数十万甚至数百万个 JSON 对象? Node .js

node.js - 如何获取Node vm2运行代码的结果

javascript - React : NextJS, 我需要 2 台服务器进行部署吗?

java - 仅从 Firebase 的联系人列表中检索数据

google-cloud-functions - Google Cloud Functions 仅在成功时确认发布/订阅

node.js - 多对多关系的正确文件夹结构

android - 在 Firebase/Android 聊天应用程序中发送和接收大图像文件的最佳方法是什么

firebase - Firebase 是否会影响生产应用程序的性能

node.js - Firebase-NodeJS : Domain-Wide Delegation with OAuth2 for Google API

docker - 从 Firebase/Google Cloud Functions 执行 Docker 容器