`firebase emulators:start` not working on WLS on Windows 10
See original GitHub issue[REQUIRED] Environment info
firebase-tools: 7.0.2
Platform: WSL on Windows 10
[REQUIRED] Test case
An empty project with the auto-generated Cloud Functions boilerplate is enough to reproduce it.
[REQUIRED] Steps to reproduce
Run firebase emulators:start
[REQUIRED] Expected behavior
I should be able to use the local environment.
[REQUIRED] Actual behavior
It starts the local server at port 5001, if I open it in Chrome I get a { "status": "alive" }
response, but after 30 seconds it shuts down by itself because of a “timeout”.
✔ functions: Emulator started at http://localhost:5001
i Shutting down emulators.
i Stopping functions emulator
Error: TIMEOUT: Port 5001 was not active within 30000ms
The project works fine when deployed to Google Cloud. I tried to run it with sudo
also.
If I visit the demo “hello world” endpoint I get an error saying the endpoint is not available.
I tried to run it with --debug
but no additional information is displayed during the shutdown/timeout
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:15 (7 by maintainers)
Top Results From Across the Web
firestore doesn't work in the emulator in cloud function tutorial
Firebase emulator doesn't work on WSL2 right now. I solved this by using git-bash console with a windows installation of nodejs/npm.
Read more >Set up the Local Emulator Suite | Firebase Security Rules
Start the emulator using the following command. The emulator runs during all your tests. Cloud Firestore ...
Read more >How to Install FireBase CLI on Windows - YouTube
Learn How to Install FireBase CLI on Windows. Install the Firebase CLI with Node on Windows desktop.
Read more >Technical writings about computing infrastructure, HTTP ...
This began when I started using my Windows “gaming” desktop & WSL (Windows ... but poor Unicode support, tmux glitches & some emulation/escaping...
Read more >Try to build a Firebase application development environment ...
Hot reload does not work when sharing TS build destination with Windows ... "emulators": "tsc-watch --onFirstSuccess \"firebase emulators:start --token ...
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
I was able to reproduce this bug at home on my personal machine (we don’t have Windows at work) so it’s definitely real! I didn’t have time to start debugging but I will try that next.
Ok version
7.5.0
should work well for all you Windows Linux Subsystem users out there!