【发布时间】:2022-01-15 08:08:11
【问题描述】:
我有以下版本 npm - 8.1.0 java - openjdk 11.0.13 2021-10-19 LTS
我使用的是 M1 Mac。
我只选择了firestore模拟器运行,成功登录等
我愿意firebase emulators:start
这是我的输出
i emulators: Starting emulators: firestore
i firestore: Firestore Emulator logging to firestore-debug.log
然后它在这里挂了 60 秒,然后我得到了这个
i emulators: Shutting down emulators.
i firestore: Stopping Firestore Emulator
i hub: Stopping emulator hub
Error: TIMEOUT: Port 8085 on localhost was not active within 60000ms
请注意,我尝试了 8080(默认)和 8085,只是为了尝试不同的端口但相同的行为。
Firestore 调试如下所示
Dec 10, 2021 10:38:11 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
INFO: Started WebSocket server on ws://localhost:49860
API endpoint: http://localhost:8085
If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:
export FIRESTORE_EMULATOR_HOST=localhost:8085
Dev App Server is now running.
*** shutting down gRPC server since JVM is shutting down
*** server shut down
对可能出现的问题或如何解决有什么想法吗?
【问题讨论】: