Troubleshooting with firebase emulators

597 views
Skip to first unread message

CoolGuy

unread,
May 4, 2022, 2:36:38 PM5/4/22
to Firebase Google Group
Hello, 
I try to emulate my project but when i launch 
firebase emulators:start   i got thi error : 

[debug] [2022-05-04T13:12:25.536Z] ----------------------------------------------------------------------
[debug] [2022-05-04T13:12:25.538Z] Command:       C:\Program Files\nodejs\node.exe C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js emulators:start
[debug] [2022-05-04T13:12:25.539Z] CLI Version:   10.7.2
[debug] [2022-05-04T13:12:25.539Z] Platform:      win32
[debug] [2022-05-04T13:12:25.539Z] Node Version:  v16.14.2
[debug] [2022-05-04T13:12:25.541Z] Time:          Wed May 04 2022 15:12:25 GMT+0200 (heure d’été d’Europe centrale)
[debug] [2022-05-04T13:12:25.541Z] ----------------------------------------------------------------------
[debug]
[debug] [2022-05-04T13:12:25.634Z] > authorizing via signed-in user (codes...@gmail.com)
[debug] [2022-05-04T13:12:25.753Z] java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02
[debug] [2022-05-04T13:12:25.755Z] )
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

[debug] [2022-05-04T13:12:25.764Z] Parsed Java major version: 1
[warn] !  emulators: Support for Java version <= 10 will be dropped soon in firebase-tools@11. Please upgrade to Java version 11 or above to continue using the emulators.
[info] i  emulators: Starting emulators: auth, functions, database {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: auth, functions, database"}}
[debug] [2022-05-04T13:12:25.804Z] [hub] writing locator at C:\Users\lenovo\AppData\Local\Temp\hub-jobsearch-36561.json
[warn] !  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: firestore, hosting, pubsub, storage {"metadata":{"emulator":{"name":"functions"},"message":"The following emulators are not running, calls to these services from the Functions emulator will affect production: \u001b[1mfirestore, hosting, pubsub, storage\u001b[22m"}}
[info] i  emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
[info] i  functions: Stopping Functions Emulator {"metadata":{"emulator":{"name":"functions"},"message":"Stopping Functions Emulator"}}
[info] i  hub: Stopping emulator hub {"metadata":{"emulator":{"name":"hub"},"message":"Stopping emulator hub"}}
[debug] [2022-05-04T13:12:26.287Z] Error: Cannot find module 'C:\sandbox\jobsearch\functions\package.json'
Require stack:
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulator.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\controller.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\commandUtils.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\database-get.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\index.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\index.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at FunctionsEmulator.getNodeBinary (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:595:21)
    at FunctionsEmulator.start (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:203:39)
    at Function.start (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\registry.js:16:24)
    at startEmulator (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\controller.js:99:39)
    at Object.startAll (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\controller.js:329:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Command.actionFn (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\emulators-start.js:28:35)
[error]
[error] Error: An unexpected error has occurred.
[debug] [2022-05-04T13:13:15.085Z] ----------------------------------------------------------------------
[debug] [2022-05-04T13:13:15.087Z] Command:       C:\Program Files\nodejs\node.exe C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js emulators:start
[debug] [2022-05-04T13:13:15.088Z] CLI Version:   10.7.2
[debug] [2022-05-04T13:13:15.088Z] Platform:      win32
[debug] [2022-05-04T13:13:15.088Z] Node Version:  v16.14.2
[debug] [2022-05-04T13:13:15.090Z] Time:          Wed May 04 2022 15:13:15 GMT+0200 (heure d’été d’Europe centrale)
[debug] [2022-05-04T13:13:15.090Z] ----------------------------------------------------------------------
[debug]
[debug] [2022-05-04T13:13:15.177Z] > authorizing via signed-in user (codes...@gmail.com)
[debug] [2022-05-04T13:13:15.273Z] java version "1.8.0_333"

[debug] [2022-05-04T13:13:15.274Z] Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

[debug] [2022-05-04T13:13:15.283Z] Parsed Java major version: 1
[warn] !  emulators: Support for Java version <= 10 will be dropped soon in firebase-tools@11. Please upgrade to Java version 11 or above to continue using the emulators.
[info] i  emulators: Starting emulators: auth, functions, database {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: auth, functions, database"}}
[debug] [2022-05-04T13:13:15.321Z] [hub] writing locator at C:\Users\lenovo\AppData\Local\Temp\hub-jobsearch-36561.json
[warn] !  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: firestore, hosting, pubsub, storage {"metadata":{"emulator":{"name":"functions"},"message":"The following emulators are not running, calls to these services from the Functions emulator will affect production: \u001b[1mfirestore, hosting, pubsub, storage\u001b[22m"}}
[info] i  emulators: Shutting down emulators. {"metadata":{"emulator":{"name":"hub"},"message":"Shutting down emulators."}}
[info] i  functions: Stopping Functions Emulator {"metadata":{"emulator":{"name":"functions"},"message":"Stopping Functions Emulator"}}
[info] i  hub: Stopping emulator hub {"metadata":{"emulator":{"name":"hub"},"message":"Stopping emulator hub"}}
[debug] [2022-05-04T13:13:15.785Z] Error: Cannot find module 'C:\sandbox\jobsearch\functions\package.json'
Require stack:
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulator.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\controller.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\commandUtils.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\database-get.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\index.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\index.js
- C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at FunctionsEmulator.getNodeBinary (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:595:21)
    at FunctionsEmulator.start (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulator.js:203:39)
    at Function.start (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\registry.js:16:24)
    at startEmulator (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\controller.js:99:39)
    at Object.startAll (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\controller.js:329:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Command.actionFn (C:\Users\lenovo\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\emulators-start.js:28:35)
[error]
[error] Error: An unexpected error has occurred.

I cant understand why he try to launch function cause i'm not using it yet and i havant install it too ... someone see what is the problem ? 

Reply all
Reply to author
Forward
0 new messages