【问题标题】:when I run this command "firebase emulators: start" it does not run my localhost当我运行此命令“firebase emulators:start”时,它不会运行我的本地主机
【发布时间】:2022-01-08 15:54:09
【问题描述】:

当我运行 express 时,它会在我的控制台中显示这样的消息

$ firebase emulators:start
i  emulators: Starting emulators: functions, database, hosting
!  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, firestore, pubsub, storage
+  functions: Using node@16 from host.
i  database: Database Emulator logging to database-debug.log
!  database: Fatal error occurred: 
   Database Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/,
   stopping all running emulators
i  functions: Stopping Functions Emulator
i  database: Stopping Database Emulator
!  database: Error stopping Database Emulator
i  hub: Stopping emulator hu

【问题讨论】:

    标签: reactjs firebase express


    【解决方案1】:

    您注意到输出中的错误消息了吗?

    Database Emulator has exited because java is not installed,
    you can install it from https://openjdk.java.net/install/
    

    我建议按照说明安装 java。 还要在这里查看要求https://firebase.google.com/docs/emulator-suite/install_and_configure

    【讨论】:

      猜你喜欢
      • 2023-04-11
      • 2015-12-24
      • 2020-12-05
      • 2020-01-20
      • 2021-11-26
      • 2020-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多