【问题标题】:How to start Firebase emulator?如何启动 Firebase 模拟器?
【发布时间】:2020-09-20 01:39:09
【问题描述】:

如何启动 Firebase 模拟器,我已经执行了here 中提到的所有步骤。这是我尝试运行模拟器时的输出:

=== Emulators Setup
? Which Firebase emulators do you want to set up? Press Space to select emulator
s, then Enter to confirm your choices. Firestore
i  Port for firestore already configured: 8080
? Would you like to download the emulators now? Yes

i  Writing configuration info to firebase.json...
i  Writing project information to .firebaserc...

✔  Firebase initialization complete!
users-iMac:~ users firebase emulators:start --only firestore
i  emulators: Starting emulators: firestore
⚠  emulators: It seems that you are running multiple instances of the emulator suite for project project_name. This may result in unexpected behavior.
✔  hub: emulator hub started at http://localhost:4400
⚠  firestore: Did not find a Cloud Firestore rules file specified in a firebase.json config file.
⚠  firestore: The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration.
i  firestore: firestore emulator logging to firestore-debug.log
✔  firestore: firestore emulator started at http://localhost:8080
i  firestore: For testing set FIRESTORE_EMULATOR_HOST=localhost:8080
✔  emulators: All emulators started, it is now safe to connect.

点击 localhost 链接 (localhost: 4400),它显示:

localhost:8080 上显示:

【问题讨论】:

  • 我遇到了同样的问题。我在 firebase subreddit 中问过,如果我在那里得到答案,我也会在这里发布。

标签: android ios firebase flutter firebase-tools


【解决方案1】:

我遇到了同样的问题,并且集线器似乎无法在低于 8.4 的 Firebase 版本上运行,而您使用的是 8.1.1。尝试升级到 8.4.3。

【讨论】:

    猜你喜欢
    • 2018-05-21
    • 2020-09-09
    • 2022-01-15
    • 1970-01-01
    • 2020-01-28
    • 2021-11-16
    • 1970-01-01
    • 2022-07-19
    • 2013-09-22
    相关资源
    最近更新 更多