Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows PS C:\Users\MYUSERNAME> cd documents PS C:\Users\MYUSERNAME\documents> cd my-app PS C:\Users\MYUSERNAME\documents\my-app> firebase emulators:start --debug [2023-08-21T12:33:22.920Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.922Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.923Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.923Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.923Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.924Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"type"} [2023-08-21T12:33:22.924Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"destination"} [2023-08-21T12:33:22.925Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"destination"} [2023-08-21T12:33:22.926Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"destination"} [2023-08-21T12:33:22.926Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"destination"} [2023-08-21T12:33:22.927Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.927Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.927Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.928Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.928Z] Object ".hosting.rewrites[0]" in "firebase.json" has unknown property: {"additionalProperty":"source"} [2023-08-21T12:33:22.928Z] Field ".hosting.rewrites[0]" in "firebase.json" is possibly invalid: should match some schema in anyOf [2023-08-21T12:33:22.929Z] Field ".hosting" in "firebase.json" is possibly invalid: should be array [2023-08-21T12:33:22.929Z] Field ".hosting" in "firebase.json" is possibly invalid: should match some schema in anyOf [2023-08-21T12:33:23.000Z] > 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"] [2023-08-21T12:33:23.001Z] > authorizing via signed-in user (MYEMAILADDRESS) [2023-08-21T12:33:23.335Z] java version "20.0.1" 2023-04-18 Java(TM) SE Runtime Environment (build 20.0.1+9-29) Java HotSpot(TM) 64-Bit Server VM (build 20.0.1+9-29, mixed mode, sharing) [2023-08-21T12:33:23.354Z] Parsed Java major version: 20 i emulators: Starting emulators: functions, firestore, hosting {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: functions, firestore, hosting"}} [2023-08-21T12:33:23.383Z] [logging] Logging Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 [2023-08-21T12:33:23.384Z] [firestore] Firestore Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 [2023-08-21T12:33:23.385Z] [firestore.websocket] websocket server for firestore only supports listening on one address (127.0.0.1). Not listening on ::1 [2023-08-21T12:33:23.385Z] [hosting] Hosting Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 [2023-08-21T12:33:23.386Z] assigned listening specs for emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"firestore":[{"address":"127.0.0.1","family":"IPv4","port":5003}],"firestore.websocket":[{"address":"127.0.0.1","family":"IPv4","port":9150}],"hosting":[{"address":"127.0.0.1","family":"IPv4","port":5000}]},"metadata":{"message":"assigned listening specs for emulators"}} [2023-08-21T12:33:23.464Z] [hub] writing locator at C:\Users\MYUSERNAME\AppData\Local\Temp\hub-MY-FIREBASE-PROJECT.json [2023-08-21T12:33:23.485Z] [functions] Functions Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 [2023-08-21T12:33:23.485Z] [eventarc] Eventarc Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 [2023-08-21T12:33:23.486Z] late-assigned ports for functions and eventarc emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"firestore":[{"address":"127.0.0.1","family":"IPv4","port":5003}],"firestore.websocket":[{"address":"127.0.0.1","family":"IPv4","port":9150}],"hosting":[{"address":"127.0.0.1","family":"IPv4","port":5000}],"functions":[{"address":"127.0.0.1","family":"IPv4","port":5001}],"eventarc":[{"address":"127.0.0.1","family":"IPv4","port":9299}]},"metadata":{"message":"late-assigned ports for functions and eventarc emulators"}} ! functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, pubsub, storage {"metadata":{"emulator":{"name":"functions"},"message":"The following emulators are not running, callsto these services from the Functions emulator will affect production: \u001b[1mauth, database, pubsub, storage\u001b[22m"}} [2023-08-21T12:33:23.493Z] defaultcredentials: writing to file C:\Users\MYUSERNAME\AppData\Roaming\firebase\MYUSERNAME_application_default_credentials.json [2023-08-21T12:33:23.497Z] Setting GAC to C:\Users\MYUSERNAME\AppData\Roaming\firebase\MYUSERNAME_application_default_credentials.json {"metadata":{"emulator":{"name":"functions"},"message":"Setting GAC to C:\\Users\\MYUSERNAME\\AppData\\Roaming\\firebase\\MYUSERNAME_application_default_credentials.json"}} [2023-08-21T12:33:23.502Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/adminSdkConfig [none] [2023-08-21T12:33:24.234Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/adminSdkConfig 200 [2023-08-21T12:33:24.234Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/adminSdkConfig {"projectId":"MY-FIREBASE-PROJECT","databaseURL":"https://MY-FIREBASE-PROJECT.firebaseio.com","storageBucket":"MY-FIREBASE-PROJECT.appspot.com","locationId":"us-central"} [2023-08-21T12:33:24.276Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: auto_download"}} [2023-08-21T12:33:24.277Z] Ignoring unsupported arg: single_project_mode_error {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: single_project_mode_error"}} [2023-08-21T12:33:24.278Z] Starting Firestore Emulator with command {"binary":"java","args":["-Dgoogle.cloud_firestore.debug_log_level=FINE","-Duser.language=en","-jar","C:\\Users\\MYUSERNAME\\.cache\\firebase\\emulators\\cloud-firestore-emulator-v1.18.1.jar","--host","127.0.0.1","--port",5003,"--websocket_port",9150,"--project_id","MY-FIREBASE-PROJECT","--rules","C:\\Users\\MYUSERNAME\\documents\\my-app\\firestore.rules","--single_project_mode",true,"--functions_emulator","127.0.0.1:5001"],"optionalArgs":["port","webchannel_port","host","rules","websocket_port","functions_emulator","seed_from_export","project_id","single_project_mode"],"joinArgs":false} {"metadata":{"emulator":{"name":"firestore"},"message":"Starting Firestore Emulator with command {\"binary\":\"java\",\"args\":[\"-Dgoogle.cloud_firestore.debug_log_level=FINE\",\"-Duser.language=en\",\"-jar\",\"C:\\\\Users\\\\MYUSERNAME\\\\.cache\\\\firebase\\\\emulators\\\\cloud-firestore-emulator-v1.18.1.jar\",\"--host\",\"127.0.0.1\",\"--port\",5003,\"--websocket_port\",9150,\"--project_id\",\"MY-FIREBASE-PROJECT\",\"--rules\",\"C:\\\\Users\\\\MYUSERNAME\\\\documents\\\\my-app\\\\firestore.rules\",\"--single_project_mode\",true,\"--functions_emulator\",\"127.0.0.1:5001\"],\"optionalArgs\":[\"port\",\"webchannel_port\",\"host\",\"rules\",\"websocket_port\",\"functions_emulator\",\"seed_from_export\",\"project_id\",\"single_project_mode\"],\"joinArgs\":false}"}} i firestore: Firestore Emulator logging to firestore-debug.log {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator logging to \u001b[1mfirestore-debug.log\u001b[22m"}} + firestore: Firestore Emulator UI websocket is running on 9150. {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator UI websocket is running on 9150."}} [2023-08-21T12:33:28.636Z] >>> [apiv2][query] GET https://firebasehosting.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/sites [2023-08-21T12:33:30.047Z] <<< [apiv2][status] GET https://firebasehosting.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/sites 200 [2023-08-21T12:33:30.047Z] <<< [apiv2][body] GET https://firebasehosting.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/sites {"sites":[{"name":"projects/MY-FIREBASE-PROJECT/sites/MY-FIREBASE-PROJECT","defaultUrl":"https://MY-FIREBASE-PROJECT.web.app","type":"DEFAULT_SITE"}]} [2023-08-21T12:33:30.048Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/webApps/-/config[none] [2023-08-21T12:33:30.937Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/webApps/-/config 200 [2023-08-21T12:33:30.937Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT/webApps/-/config {"projectId":"MY-FIREBASE-PROJECT","databaseURL":"https://MY-FIREBASE-PROJECT.firebaseio.com","storageBucket":"MY-FIREBASE-PROJECT.appspot.com","locationId":"us-central","apiKey":"AIzaSyDBdYM_DJ9g8pjVb-A6xB6Gw2CLDyAmq7o","authDomain":"MY-FIREBASE-PROJECT.firebaseapp.com","messagingSenderId":"967536282066"} [2023-08-21T12:33:31.011Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT [none] [2023-08-21T12:33:31.512Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT 200 [2023-08-21T12:33:31.514Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/MY-FIREBASE-PROJECT {"projectId":"MY-FIREBASE-PROJECT","projectNumber":"967536282066","displayName":"PROD My App","name":"projects/MY-FIREBASE-PROJECT","resources":{"hostingSite":"MY-FIREBASE-PROJECT","realtimeDatabaseInstance":"MY-FIREBASE-PROJECT","storageBucket":"MY-FIREBASE-PROJECT.appspot.com","locationId":"us-central"},"state":"ACTIVE","etag":"1_288112c3-2f88-4be1-ab11-c85b7aef578a"} i hosting[MY-FIREBASE-PROJECT]: Serving hosting files from: public {"metadata":{"emulator":{"name":"hosting"},"message":"Serving hosting files from: \u001b[1mpublic\u001b[22m"}} + hosting[MY-FIREBASE-PROJECT]: Local server: http://127.0.0.1:5000 {"metadata":{"emulator":{"name":"hosting"},"message":"Local server: \u001b[4m\u001b[1mhttp://127.0.0.1:5000\u001b[22m\u001b[24m"}} [2023-08-21T12:33:31.763Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}} [2023-08-21T12:33:31.764Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg:port"}} [2023-08-21T12:33:31.765Z] Starting Emulator UI with command {"binary":"node","args":["C:\\Users\\MYUSERNAME\\.cache\\firebase\\emulators\\ui-v1.11.7\\server\\server.js"],"optionalArgs":[],"joinArgs":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"C:\\\\Users\\\\MYUSERNAME\\\\.cache\\\\firebase\\\\emulators\\\\ui-v1.11.7\\\\server\\\\server.js\"],\"optionalArgs\":[],\"joinArgs\":false}"}} i ui: Emulator UI logging to ui-debug.log {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI logging to \u001b[1mui-debug.log\u001b[22m"}} [2023-08-21T12:33:32.566Z] Web / API server started at 127.0.0.1:4000 {"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at 127.0.0.1:4000\n"}} [2023-08-21T12:33:32.568Z] Web / API server started at ::1:4000 {"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at ::1:4000\n"}} i functions: Watching "C:\Users\MYUSERNAME\documents\my-app\functions" for Cloud Functions... {"metadata":{"emulator":{"name":"functions"},"message":"Watching \"C:\\Users\\MYUSERNAME\\documents\\my-app\\functions\" for Cloud Functions..."}} [2023-08-21T12:33:32.880Z] Validating nodejs source [2023-08-21T12:33:42.973Z] checkFunctionsSDKVersion was unable to fetch information from NPM Error: spawnSync C:\Windows\system32\cmd.exe ETIMEDOUT at Object.spawnSync (node:internal/child_process:1083:20) at Object.spawnSync (node:child_process:812:24) at Function.spawnSync [as sync] (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\node_modules\cross-spawn\index.js:26:23) at Object.getLatestSDKVersion (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\deploy\functions\runtimes\node\versioning.js:54:25) at Object.checkFunctionsSDKVersion (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\deploy\functions\runtimes\node\versioning.js:74:32) at Delegate.validate (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\deploy\functions\runtimes\node\index.js:84:20) at FunctionsEmulator.discoverTriggers (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:296:35) at async FunctionsEmulator.loadTriggers (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:325:34) at async FunctionsEmulator.connect (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:262:13) at async Object.startAll (C:\Users\MYUSERNAME\AppData\Roaming\nvm\v16.13.0\node_modules\firebase-tools\lib\emulator\controller.js:562:13) [2023-08-21T12:33:42.975Z] > [functions] package.json contents: { "name": "functions", "description": "Cloud Functions for Firebase", "scripts": { "lint": "eslint .", "serve": "firebase emulators:start --only functions", "shell": "firebase functions:shell", "start": "npm run shell", "deploy": "firebase deploy --only functions", "logs": "firebase functions:log" }, "engines": { "node": "16" }, "main": "index.js", "dependencies": { "atlassian-jwt": "^2.0.2", "dayjs": "^1.11.7", "express-validator": "^6.15.0", "firebase-admin": "^11.10.1", "firebase-functions": "^4.4.1", "nanoid": "^3.3.4", "node-forge": "^1.3.1" }, "devDependencies": { "eslint": "^8.36.0", "eslint-config-google": "^0.14.0", "eslint-plugin-promise": "^6.1.1" }, "private": true } [2023-08-21T12:33:42.977Z] Building nodejs source [2023-08-21T12:33:42.978Z] Failed to find version of module node: reached end of search path C:\Users\MYUSERNAME\documents\my-app\functions\node_modules + functions: Using node@16 from host. [2023-08-21T12:33:42.986Z] Could not find functions.yaml. Must use http discovery [2023-08-21T12:33:43.011Z] Found firebase-functions binary at 'C:\Users\MYUSERNAME\documents\my-app\functions\node_modules\.bin\firebase-functions' Serving at port 8683 shutdown requested via /__/quitquitquit !! functions: Failed to load function definition from source: FirebaseError: User code failed to load. Cannot determine backend specification {"metadata":{"emulator":{"name":"functions"},"message":"Failed to load function definition from source: FirebaseError: User code failed to load. Cannot determine backend specification"}} ┌─────────────────────────────────────────────────────────────┐ │ ✔ All emulators ready! It is now safe to connect your app. │ │ i View Emulator UI at http://127.0.0.1:4000/ │ └─────────────────────────────────────────────────────────────┘ ┌───────────┬────────────────┬─────────────────────────────────┐ │ Emulator │ Host:Port │ View in Emulator UI │ ├───────────┼────────────────┼─────────────────────────────────┤ │ Functions │ 127.0.0.1:5001 │ http://127.0.0.1:4000/functions │ ├───────────┼────────────────┼─────────────────────────────────┤ │ Firestore │ 127.0.0.1:5003 │ http://127.0.0.1:4000/firestore │ ├───────────┼────────────────┼─────────────────────────────────┤ │ Hosting │ 127.0.0.1:5000 │ n/a │ └───────────┴────────────────┴─────────────────────────────────┘ Emulator Hub running at 127.0.0.1:4400 Other reserved ports: 4500, 9150 Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.