Skip to content

Instantly share code, notes, and snippets.

@paulb777
Created May 27, 2022 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulb777/a31e45bbf3237154488a4213584045dd to your computer and use it in GitHub Desktop.
Save paulb777/a31e45bbf3237154488a4213584045dd to your computer and use it in GitHub Desktop.
~/github/react-native-firebase/.github/workflows/scripts (main) $ ./start-firebase-emulator.sh
~/github/react-native-firebase/.github/workflows/scripts/functions ~/github/react-native-firebase/.github/workflows/scripts
yarn install v1.22.18
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] 🔍 Validating package.json...
error functions@: The engine "node" is incompatible with this module. Expected version "16". Got "14.17.5"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Starting Firebase Emulator Suite in background.
Firebase Emulator Suite is online!
~/github/react-native-firebase/.github/workflows/scripts (main) $ [2022-05-27T22:30:34.018Z] Field ".emulators.auth.port" in "firebase.json" is possibly invalid: should be number
[2022-05-27T22:30:34.022Z] > 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"]
[2022-05-27T22:30:34.022Z] > authorizing via signed-in user (paulbeusterien@google.com)
i emulators: Starting emulators: auth, functions, firestore, database, storage {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: auth, functions, firestore, database, storage"}}
[2022-05-27T22:30:34.034Z] [hub] writing locator at /var/folders/f8/780yxvcx2x91wmlsmvyv0bdr00bzqz/T/hub-react-native-firebase-testing.json
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: hosting, pubsub {"metadata":{"emulator":{"name":"functions"},"message":"The following emulators are not running, calls to these services from the Functions emulator will affect production: \u001b[1mhosting, pubsub\u001b[22m"}}
⚠ Your requested "node" version "16" doesn't match your global version "12" {"metadata":{"emulator":{"name":"functions"},"message":"Your requested \"node\" version \"16\" doesn't match your global version \"12\""}}
[2022-05-27T22:30:34.094Z] defaultcredentials: writing to file /Users/paulbeusterien/.config/firebase/paulbeusterien_google_com_application_default_credentials.json
[2022-05-27T22:30:34.098Z] Setting GAC to /Users/paulbeusterien/.config/firebase/paulbeusterien_google_com_application_default_credentials.json {"metadata":{"emulator":{"name":"functions"},"message":"Setting GAC to /Users/paulbeusterien/.config/firebase/paulbeusterien_google_com_application_default_credentials.json"}}
[2022-05-27T22:30:34.100Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/react-native-firebase-testing/adminSdkConfig [none]
[2022-05-27T22:30:34.517Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/react-native-firebase-testing/adminSdkConfig 403
[2022-05-27T22:30:34.517Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/react-native-firebase-testing/adminSdkConfig {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}
[2022-05-27T22:30:34.518Z] Failed to get Admin SDK config for react-native-firebase-testing, falling back to cache Failed to get Admin SDK for Firebase project react-native-firebase-testing. Please make sure the project exists and your account has permission to access it. {"name":"FirebaseError","children":[],"exit":2,"message":"Failed to get Admin SDK for Firebase project react-native-firebase-testing. Please make sure the project exists and your account has permission to access it.","original":{"name":"FirebaseError","children":[],"context":{"body":{"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}},"response":{"statusCode":403}},"exit":1,"message":"HTTP Error: 403, The caller does not have permission","status":403},"status":500}
⚠ functions: Unable to fetch project Admin SDK configuration, Admin SDK behavior in Cloud Functions emulator may be incorrect. {"metadata":{"emulator":{"name":"functions"},"message":"Unable to fetch project Admin SDK configuration, Admin SDK behavior in Cloud Functions emulator may be incorrect."}}
i emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
i functions: Stopping Functions Emulator {"metadata":{"emulator":{"name":"functions"},"message":"Stopping Functions Emulator"}}
i hub: Stopping emulator hub {"metadata":{"emulator":{"name":"hub"},"message":"Stopping emulator hub"}}
⚠ firestore: Port 8080 is not open on localhost, could not start Firestore Emulator. {"metadata":{"emulator":{"name":"firestore"},"message":"Port 8080 is not open on localhost, could not start Firestore Emulator."}}
⚠ firestore: To select a different host/port, specify that host/port in a firebase.json config file:
{
// ...
"emulators": {
"firestore": {
"host": "HOST",
"port": "PORT"
}
}
} {"metadata":{"emulator":{"name":"firestore"},"message":"To select a different host/port, specify that host/port in a firebase.json config file:\n {\n // ...\n \"emulators\": {\n \"firestore\": {\n \"host\": \"\u001b[33mHOST\u001b[39m\",\n \"port\": \"\u001b[33mPORT\u001b[39m\"\n }\n }\n }"}}
i emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
Error: Could not start Firestore Emulator, port taken.
Having trouble? Try firebase [command] --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment