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:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
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.