Open3
FirebaseのEmulatarが立ち上がらない対処法
ピン留めされたアイテム

下記のIssueを見つける。
v11.30で治ったとのコメントがあった。
自分のfirebase-toolsのversionを確認してみるとversionがv10と古かった。
(これまでは動いていたのに...)
brewでインストールしていたので、brew upgradeでアップデートする。
$ brew upgrade firebase-tools
v10からv13.1.0へアップグレードされた。
v13に上げた後に再度、$ firebase emulators:start
を叩くと、無事起動できた。

本来であれば、$firebase emulators:start
を叩くと、下記のようにFirebaseのエミュレーターが立ち上がるはずが、立ち上がらない。
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
└─────────────────────────────────────────────────────────────┘
┌────────────────┬────────────────┐
│ Emulator │ Host:Port │
├────────────────┼────────────────┤
│ Authentication │ 127.0.0.1:9099 │
├────────────────┼────────────────┤
│ Functions │ 127.0.0.1:5001 │
├────────────────┼────────────────┤
│ Firestore │ 127.0.0.1:8080 │
├────────────────┼────────────────┤
│ Hosting │ 127.0.0.1:5000 │
└────────────────┴────────────────┘
Emulator Hub running at 127.0.0.1:4400
Other reserved ports: 4500, 9150
❯ firebase emulators:start --import=./seed
i emulators: Starting emulators: auth, functions, firestore, hosting
⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, pubsub, storage
i firestore: Importing data from /$MY_LOCAL_PATH/emulators-codelab/codelab-initial-state/seed/firestore_export/firestore_export.overall_export_metadata
i firestore: Firestore Emulator logging to firestore-debug.log
✔ firestore: Firestore Emulator UI websocket is running on 9150.
i hosting[$MY_PROJECT_ID]: Serving hosting files from: public
✔ hosting[$MY_PROJECT_ID]: Local server: http://127.0.0.1:5000
i ui: Emulator UI logging to ui-debug.log
⚠ ui: Fatal error occurred:
Emulator UI has exited with code: 1,
stopping all running emulators
i ui: Stopping Emulator UI
⚠ ui: Error stopping Emulator UI
i functions: Stopping Functions Emulator
i hosting: Stopping Hosting Emulator
i firestore: Stopping Firestore Emulator
i auth: Stopping Authentication Emulator
i eventarc: Stopping Eventarc Emulator
i hub: Stopping emulator hub
i logging: Stopping Logging Emulator

firebase.jsonのportやhostを変えると治るという記事がネットに多く転がっていたが、これではダメだった。
こういうやつ↓
"emulators": {
"functions": {
"port": 5001,
"host": "127.0.0.1"
},
"firestore": {
"port": 8080,
"host": "127.0.0.1"
},
"ui": {
"enabled": true
}
}
PCを再起動してもだめ。