[英]Deploying cloud functions on cli, “Firebase config variables are not available.”
[英]same error after updating to CLI 3.17.5 : Firebase config variables are not available. Please use the latest version of the Firebase CLI
从3.17.4更新到最新的Firebase CLI工具3.17.5之后,当我尝试在本地模拟功能时遇到此错误?
如何解决此问题?,我尝试多次更新和刷新,但未成功。
-functions inside the functions directory.
! functions: Error from emulator. Error occurred while parsing your function triggers. Please ensure you have the latest firebase-functions SDK by running "npm i --save firebase-functions@latest" inside your functions folder.
Error: Firebase config variables are not available. Please use the latest version of the Firebase CLI to deploy this function.
at init (D:\android-projects\firebase\functions\node_modules\firebase-functions\lib\config.js:55:15)
at Object.config (D:\android-projects\firebase\functions\node_modules\firebase-functions\lib\config.js:29:9)
at Object.<anonymous> (D:\android-projects\firebase\functions\index.js:56:31)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
Shutting down...
该错误消息并没有告诉您有关使用firebase-tools
安装的CLI的更多信息。 它专门告诉您有关functions文件夹中安装的firebase-functions
依赖性的信息。 请采纳其具体建议,并在您的项目中安装最新的firebase-functions模块。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.