Firebase 功能问题?

标签 firebase google-cloud-functions

i functions: Preparing to emulate functions. Warning: You're using Node.js v8.10.0 but Google Cloud Functions only supports v6.11.5.

⚠ functions: Failed to load functions source code. Ensure that you have the latest SDK by running npm i --save firebase-functions inside the functions directory.

⚠ functions: Error from emulator. Error parsing triggers: Cannot find module '/home/developer/Development/host2/functions'

Try running "npm install" in your functions directory before deploying.



我们是 firebase 功能的新手,如何解决这个问题?

最佳答案

在许多情况下,新功能和错误修复仅适用于最新版本的 Firebase CLI 和 firebase-functions SDK。使用 Firebase 项目的函数文件夹中的这些命令经常更新 Firebase CLI 和 SDK 是一个好习惯:

npm install -g firebase-tools
npm install firebase-functions@latest firebase-admin@latest --save

访问:https://firebase.google.com/docs/functions/get-started

关于Firebase 功能问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50314155/

相关文章:

javascript - 如何在方法(Vuefire)中访问 firebase prop 的值?

ios - 获取firebase服务器时间云函数

javascript - 带有子集合的 Firestore 查询

google-cloud-platform - HTTP Google Cloud Functions 中的身份验证

android - android如何实时获取firestore文档列表

Firebase 索引 "order": "ARRAYS"

python - Google Cloud Functions - 如何对 AWS S3 存储桶进行身份验证?

javascript - 使用 Firebase Cloud Functions 将值从一个节点复制到多个其他节点

javascript - Firebase - 回调返回 [object Object]

android - 更改包名称后 FCM 不工作