Firebase云函数runtimeconfig无效

Firebase云函数runtimeconfig无效,firebase,google-cloud-functions,Firebase,Google Cloud Functions,设置云函数模拟器需要我导出环境变量。命令要求在functions目录中运行以下命令(powershell): firebase functions:config:get | ac .runtimeconfig.json 现在模拟器给了我一个警告: ! Found .runtimeconfig.json but the JSON format is invalid. 这是.runtimeconfig.json { "slack": { "mould

设置云函数模拟器需要我导出环境变量。命令要求在functions目录中运行以下命令(powershell):

firebase functions:config:get | ac .runtimeconfig.json 
现在模拟器给了我一个警告:

!  Found .runtimeconfig.json but the JSON format is invalid.
这是.runtimeconfig.json

{
  "slack": {
    "moulding": "<URL>"
  },
  "email": {
    "address": "<MY_EMAIL>",
    "password": "<PASSWORD>"
  }
}
{
“松弛”:{
“模塑”:”
},
“电子邮件”:{
“地址”:“地址”,
“密码”:”
}
}
我怎样才能解决这个问题?我不确定该格式是如何无效的,因为CLI生成了它。

有人建议在
函数
目录的命令提示符中使用下面的命令,而不是Powershell

firebase functions:config:get > .runtimeconfig.json
不知道为什么上述方法有效,但确实有效