【发布时间】:2019-09-04 15:13:02
【问题描述】:
我是 Firebase 的新手。我尝试连接 Firestore 和云功能(Node JS)。
我尝试运行firebase serve
但它显示了一个错误,提示无法在 gcloud 中加载默认凭据。
我已经尝试过firebase deploy,它工作得很好。只有当我在本地运行时才会显示错误。
我还需要在谷歌云中创建一个帐户并将我的应用程序链接到它吗?
这是完整的输出错误:
i functions: Beginning execution of "getScreamDet"
> Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.
> at GoogleAuth.getApplicationDefaultAsync (/Users/vigneshwar/Desktop/rsocialapp-backend/functions/node_modules/google-auth-library/build/src/auth/googleauth.js:161:19)
> at process._tickCallback (internal/process/next_tick.js:68:7)
【问题讨论】:
标签: firebase google-cloud-firestore