question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot launch firebase emulators (Cloud Functions) requires the module "firebase-admin" to be version >8.9.0 so your version is too old

See original GitHub issue

[REQUIRED] Environment info

firebase-tools@8.7.0

macOS

[REQUIRED] Test case

I don’t have any test case. Please see steps to reproduce below.

[REQUIRED] Steps to reproduce

Install node version 12 locally, but have firebase functions set to node v10 Install emulators (all of them) into existing firebase project Launch emulators (will probably get error regarding too old admin version (look for message about node version locally doesn’t match global or something like that). Downgrade node to 10.22 Update tools, functions and admin to latest. Try to re-run firebase emulators init

[REQUIRED] Expected behavior

I should be able to get a URL to launch the emulator suite.

[REQUIRED] Actual behavior

Please see the following log output:

i  emulators: Starting emulators: functions, firestore, database, hosting, pubsub
⚠  hosting: The hosting emulator is configured but there is no hosting configuration. Have you run firebase init hosting?
⚠  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: hosting
✔  functions: Using node@10 from host.
⚠  firestore: Did not find a Cloud Firestore rules file specified in a firebase.json config file.
⚠  firestore: The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration.
i  firestore: Firestore Emulator logging to firestore-debug.log
⚠  database: Did not find a Realtime Database rules file specified in a firebase.json config file. The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration.
i  database: Database Emulator logging to database-debug.log
⚠  hosting: The hosting emulator is configured but there is no hosting configuration. Have you run firebase init hosting?
i  pubsub: Pub/Sub Emulator logging to pubsub-debug.log
i  ui: Emulator UI logging to ui-debug.log
i  functions: Watching "/Users/begun/Dropbox/SCHOOL/CLASSES/CSUMB/Capstone/VueDeu-Device_Management_Tool/CODE/VueDeu_CloudFunctions/functions" for Cloud Functions...
⚠  The Cloud Functions emulator requires the module "firebase-admin" to be version >8.9.0 so your version is too old. You can probably fix this by running "npm install firebase-admin@latest" in your functions directory.
i  functions: Your functions could not be parsed due to an issue with your node_modules (see above)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
begunfxcommented, Aug 18, 2020

@samtstern that’s really weird. I ran an update on firebase-admin several times and had 9.1 installed. Not sure why it was showing 8.6. I just ran it again and this time it launched. Thanks for the help. Not sure what happened.

0reactions
begunfxcommented, Aug 18, 2020

Just a little update. I can launch the firestore emulator if I specify the --only flag. It seems it’s just the functions emulator that refuses to start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Cloud Functions emulator requires the module "firebase ...
0 so your version is too old. You can probably fix this by running "npm install firebase-admin@latest" in your functions directory. We are ......
Read more >
verifyDeveloperNodeModules() fails to discover "firebase ...
The Cloud Functions emulator requires the module "firebase-admin" to be version >7.0.0 so your version is too old. You can probably fix this ......
Read more >
Release Notes | Firebase - Google
This page provides a changelog that lists new SDK releases and describes updates to the Firebase console and Firebase services.
Read more >
ES6 in Cloud Functions for Firebase | by James Hegedus
Welcome to a series exploring Cloud Functions for Firebase with a modern application stack (React, Apollo, GraphQL, Next.js & Firebase).
Read more >
Unable to run emulator - Google Groups
The Cloud Functions emulator requires the module "firebase-admin" to be ... firebase-tools but I do not see firebase emulator:start in lower version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found