模拟Firebase数据库触发器功能错误:服务“错误”;firebaseio.com“;目前还不支持
更新:已解决!模拟Firebase数据库触发器功能错误:服务“错误”;firebaseio.com“;目前还不支持,firebase,google-cloud-functions,firebase-cli,Firebase,Google Cloud Functions,Firebase Cli,更新:已解决!firebase工具npm软件包需要更新到最新版本。 我试图在我的终端中使用Firebase的Firebase实验:functions:shell命令模拟/测试我的云功能(特别是数据库触发器) 以下是结果,我的HTTP函数进行了模拟,但每个Firebase数据库触发器函数都会出现错误: Your requested "node" version "6" doesn't match your global version "8" ✔ functions: Emulator sta
firebase工具
npm软件包需要更新到最新版本。
我试图在我的终端中使用Firebase的
Firebase实验: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”
My package.json包括:
"firebase": "4.6.2",
"firebase-admin": "^7.4.0",
"firebase-functions": "^2.2.1",
...
"devDependencies": {
"firebase-functions-test": "^0.1.6"
},
已解决: 这仅仅是因为firebase对他们的
firebase工具
进行了一个小小的更改,0.1版本的差异足以打破模拟
只需运行npm安装-g firebase工具
即可解决此问题
软件包版本来自
firebase-tools@6.9.2
至firebase-tools@6.10.0
…@DougStevenson所以它在6.9.3
中被修复了?因为另一个突破性的改变,我在9天前才将我的工具更新到最新版本。你们在总部行动很快。