i函数:由于您的node_modules问题而导致无法解析您的函数(请参见上文)

人气:736 发布:2022-10-16 标签: node.js firebase npm google-cloud-functions firebase-cli

问题描述

关于这个问题,我正在尝试firebase emulators:start,但是得到的是波纹管输出.当我键入并按Enter时,它现在什么都不做.

In relation to this question I am trying to firebase emulators:start but I get the bellow output. Which when I type and press enter does nothing now.

i  Starting emulators: ["functions"]
⚠  Your requested "node" version "8" doesn't match your global version "12"
✔  functions: Emulator started at http://localhost:5001
i  functions: Watching "/Users/username/Desktop/FinalAppPrjv2/firefunctions/functions" for Cloud Functions...
⚠  The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory.
i  functions: Your functions could not be parsed due to an issue with your node_modules (see above)
cd functions
pwd
npm install --save-dev firebase-functions-test

我该如何解决?

推荐答案

由于错误显示尚未支持对实时数据库触发器的仿真.撰写本文时,没有办法解决这个问题.

As the error shows emulation of Realtime Database triggers is not supported yet. There is no way around this, as of writing this.

703