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

时间:2019-05-23 15:23:53

标签: firebase google-cloud-functions firebase-cli

更新:已解决! 1. CHECKOUT Senior Guest Services Manager FRONTENDMGR: 07:00 AM - 08:30 AM SGSM_BOOKKEEPING: 08:30 AM - 01:00 PM FRONTENDMGR: 01:00 PM - 04:00 PM 2. CHECKOUT Guest Services Manager BOOKKEEPER: 09:00 AM - 01:00 PM DRY GOODS Receiving Clerk RECEIVE: 04:30 AM - 09:00 AM 3. DRY GOODS Receiving Clerk RECEIVE: 04:30 AM - 09:00 AM CHECKOUT Guest Services Manager BOOKKEEPER: 09:00 AM - 01:00 PM npm软件包需要更新到最新版本。


我正在尝试在终端中使用Firebase的firebase-tools命令来模拟/测试我的云功能(特别是数据库触发器)。

这是结果,我的HTTP函数可以模拟,但是每个 Firebase数据库触发函数都会出错:

firebase experimental:functions:shell

我不明白为什么收到此错误或其含义:

  

正在忽略触发器...,因为尚不支持“ firebaseio.com”服务。

我的package.json包括:

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

1 个答案:

答案 0 :(得分:0)

已解决:

这仅仅是因为firebase对他们的firebase-tools进行了很小的更改,而0.1版本的差异足以破坏仿真。

仅运行npm install -g firebase-tools即可解决此问题。

程序包版本从firebase-tools@6.9.2firebase-tools@6.10.0 ...