【发布时间】:2022-12-04 08:21:56
【问题描述】:
我正在尝试部署默认测试功能来检查一切是否正常。
const functions = require("firebase-functions");
exports.helloWorld = functions.https.onRequest((request, response) => {
functions.logger.info("Hello logs!", {structuredData: true});
response.send("Hello from Firebase!");
});
但是当我运行firebase deploy 或firebase deploy --only functions 时,出现以下错误:
i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
! artifactregistry: missing required API artifactregistry.googleapis.com. Enabling now...
Error: HTTP Error: 403, Permission denied to enable service [artifactregistry.googleapis.com]
所有者已授予我 Cloud Functions Admin、Firebase Admin 和 Service Account User 角色,根据 Firebase 支持代表的说法,这已经足够了。
我试过登录/注销,通过npm install -g firebase-tools重新安装 Firebase 命令行工具,重新运行firebase init。
但我仍然收到同样的错误。
有没有人对这个特定错误有任何经验?
【问题讨论】:
标签: firebase google-cloud-functions firebase-cli