【发布时间】: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