Search code examples
node.jsfirebasenpmgoogle-cloud-functionsfirebase-cli

i functions: Your functions could not be parsed due to an issue with your node_modules (see above)


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

How can I solve this?


Solution

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