首页 > 解决方案 > i 函数:由于 node_modules 存在问题,无法解析您的函数(见上文)

问题描述

关于这个问题,我正在尝试,firebase emulators:start但我得到了以下输出。当我键入并按 Enter 时,它现在什么都不做。

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

我该如何解决这个问题?

标签: node.jsfirebasenpmgoogle-cloud-functionsfirebase-cli

解决方案


由于错误显示尚不支持模拟实时数据库触发器。在撰写本文时,没有办法解决这个问题。


推荐阅读