【发布时间】:2019-10-10 05:17:10
【问题描述】:
更新:已解决! firebase-tools npm 包需要更新到最新版本。
我正在尝试在终端中使用 Firebase 的 firebase experimental:functions:shell 命令模拟/测试我的云功能(特别是数据库触发器)。
这是结果,我的 HTTP 函数模拟但每个 Firebase 数据库 触发函数都会出错:
Your requested "node" version "6" doesn't match your global version "8"
✔ functions: Emulator started at http://localhost:5001
i functions: Watching "/Users/****/Documents/Websites/***** - Other/cloud-functions/" for Cloud Functions...
⚠ Default "firebase-admin" instance created!
⚠ Ignoring trigger "CF_NAME_HIDDEN_1" because the service "firebaseio.com" is not yet supported.
⚠ Ignoring trigger "CF_NAME_HIDDEN_2" because the service "firebaseio.com" is not yet supported.
⚠ Ignoring trigger "CF_NAME_HIDDEN_3" because the service "firebaseio.com" is not yet supported.
i functions: HTTP trigger initialized at http://localhost:5001/****-****/us-central1/CF_NAME_HIDDEN_4
我不明白为什么会收到此错误或它的含义:
忽略触发器...因为“firebaseio.com”服务尚不受支持。
我的 package.json 包括:
"firebase": "4.6.2",
"firebase-admin": "^7.4.0",
"firebase-functions": "^2.2.1",
...
"devDependencies": {
"firebase-functions-test": "^0.1.6"
},
【问题讨论】:
-
@DougStevenson 所以它是在
6.9.3中修复的?由于另一个重大更改,我仅在 9 天前将我的工具更新到了最新版本。你们在总部进展得很快。
标签: firebase google-cloud-functions firebase-cli