我正在通过 this tutorial here 创建带有 firebase 的 API .
在我运行时:
firebase deploy
我在命令行上收到此错误:HTTP Error: 400, Billing account for project '381106441303' is not found. Billing must be enabled for activation of service(s) 'cloudbuild.googleapis.com,containerregistry.googleapis.com' to proceed.
请告诉我如何解决这个问题!
最佳答案
如果你只是想完成一个教程,只需更改 Node 版本 从 10 到 8 在 package.json
"engines": {
"node": "8"
}
现在这将起作用,但最终在 2021 年 2 月 15 日之后将不再允许部署 Node.js 8 功能。因此,如果您想在此日期之后使用云功能,您必须使用 Blaze 即用即付计费计划。
关于node.js - 400 未找到项目的计费帐户。必须启用计费才能激活服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63932639/