模拟 Firebase 数据库触发器功能错误:尚不支持该服务"firebaseio.com"



更新:已解决!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"服务。

我的软件包。JSON包括:

"firebase": "4.6.2",
"firebase-admin": "^7.4.0",
"firebase-functions": "^2.2.1",
...
"devDependencies": {
   "firebase-functions-test": "^0.1.6"
},

已解决:

这仅仅是因为Firebase向其firebase-tools推了一个小变化,而0.1版本的差异足以打破仿真。

简单地运行npm install -g firebase-tools修复了问题。

包装版本从firebase-tools@6.9.2转到firebase-tools@6.10.0 ...

相关内容

最新更新