无法从firebase模拟器中排除firestore:开始

无法从firebase模拟器中排除firestore:开始,firebase,google-cloud-firestore,firebase-tools,Firebase,Google Cloud Firestore,Firebase Tools,我想在使用firebase模拟器:start命令时排除本地firestore并连接prod firestore。 基本上,当我尝试firebase仿真器时,我只想为函数和主机运行emulator:start--only functions,hosting 我得到以下错误: i emulators: Starting emulators: ! Not starting the functions hosting emulator, make sure you have run firebase

我想在使用
firebase模拟器:start
命令时排除本地firestore并连接prod firestore。
基本上,当我尝试
firebase仿真器时,我只想为函数和主机运行emulator:start--only functions,hosting

我得到以下错误:

i  emulators: Starting emulators:
!  Not starting the functions hosting emulator, make sure you have run firebase init.
+  All emulators started, it is now safe to connect.
然后它从壳中出来

有一个解决方法可以运行两个模拟器
firebase模拟器:开始--仅函数
firebase模拟器:开始--仅托管
,但为什么它不能在一个模拟器中运行



注:我想使用
emulator
方法而不是
firebase Service
进行调试。

这似乎是一个bug,请访问GitHub repo。

问题似乎出在powershell本身。逗号是powershell中表示数组分隔符的特殊符号。解决方案是在参数周围添加引号

# This WILL NOT work
firebase emulators:start --only functions,hosting

# This will work
firebase emulators:start --only "functions,hosting"