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.

firebase emulators:start --only functions,hosting not working

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 7.12.1

Platform: win 10

[REQUIRED] Test case

firebase emulators:start --only functions,hosting

[REQUIRED] Steps to reproduce

execute firebase emulators:start --only functions,hosting

[REQUIRED] Expected behavior

both emulators should start

[REQUIRED] Actual behavior

i  emulators: Starting emulators:
!  Not starting the functions hosting emulator, make sure you have run firebase init.
+  All emulators started, it is now safe to connect.

it works if i run functions and hosting emulator seperately

Related SO question https://stackoverflow.com/questions/59774625/not-able-to-exclude-firestore-from-firebase-emulatorsstart/59774650

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

23reactions
samtsterncommented, Jan 30, 2020

@JerryGoyal turns out that commas are special in PowerShell: https://stackoverflow.com/questions/11990688/powershell-is-removing-comma-from-program-argument

So you need to add quotes:

# This WILL NOT work
firebase emulators:start --only functions,hosting

# This will work
firebase emulators:start --only "functions,hosting"
1reaction
GorvGoylcommented, Jan 27, 2020

@samtstern I see, that shouldn’t be happening. I am using PowerShell 6.2.3 (https://aka.ms/pscore6-docs) in VSCode. so, should I file the bug in PS repo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run functions locally | Cloud Functions for Firebase - Google
The emulators:start command will start emulators for Cloud Functions, Cloud Firestore, Realtime Database, and Firebase Hosting based on the products you ...
Read more >
Firestore/Firebase Emulator Not Running - Stack Overflow
Use firebase emulators:start --only functions,firestore or firebase ... Actually this error comes when the user initialize the firebase ...
Read more >
The Full Guide on how to use the Firebase Emulator for the Web
And third, we'll talk about properly configuring the emulator for things like having starter data so that you don't have to start it...
Read more >
how to run firebase functions without emulators Code Example
Answers related to “how to run firebase functions without emulators” · firebase emulators start · install firebase tools · firebase functions config ·...
Read more >
Port 8080 is not open on localhost, could not start Firestore ...
Or, if you tried to start the emulator with only functions, I could be faced with this error. ... This error is because...
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