Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
模拟Firebase数据库触发器功能错误:服务“错误”;firebaseio.com“;目前还不支持_Firebase_Google Cloud Functions_Firebase Cli - Fatal编程技术网

模拟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天前才将我的工具更新到最新版本。你们在总部行动很快。