-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Despite a correct configuration and extensive troubleshooting, firebase emulators:start
consistently fails with Error: No emulators to start...
. We have confirmed the firebase.json
is correct for the selected emulators. We have also tried clearing the npm cache, performing a clean reinstall of firebase-tools
, deleting any local cache folders, and restarting the machine. The error persists, and the debug log is unusually short.
[REQUIRED] Environment info
firebase-tools: 14.11.2
Platform: Windows
Node: v22.18.0
npm: 10.9.3
[REQUIRED] Test case
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"/.*",
"/node_modules/"
],
"rewrites": [
{
"source": "",
"destination": "/index.html"
}
]
},
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug..log",
".local"
]
}
],
"emulators": {
"functions": {
"port": 5001
},
"hosting": {
"port": 5000
},
"firestore": {
"port": 8080
},
"ui": {
"enabled": true
},
"singleProjectMode": true
}
}
[REQUIRED] Steps to reproduce
- Run
firebase init emulators
and select Firestore, Functions, and Hosting emulators. - Use the
firebase.json
file from the test case above. - Run
firebase emulators:start --only firestore,functions,hosting
.
[REQUIRED] Expected behavior
The emulators should start successfully.
[REQUIRED] Actual behavior
[2025-08-01T08:03:58.982Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2025-08-01T08:03:58.983Z] > authorizing via signed-in user ([email protected])
[2025-08-01T08:03:58.993Z] Could not find VSCode notification endpoint: FetchError: request to http://localhost:40001/vscode/notify failed, reason: . If you are not running the Firebase Data Connect VSCode extension, this is expected and not an issue.
i emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
[2025-08-01T08:03:58.996Z] Could not find VSCode notification endpoint: FetchError: request to http://localhost:40001/vscode/notify failed, reason: . If you are not running the Firebase Data Connect VSCode extension, this is expected and not an issue.
Error: No emulators to start, run firebase init emulators to get started.