[英]Azure Pipline Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it
[英]CircleCI Workflow cannot find Firebase project: Invalid project selection please verify project 'project' exists and you have access
我們有一個循環工作流,每當我們合並到 main 時,它會自動將我們的 webapp 部署到生產環境中。 但是,自從將我們的 firebase-tools 更新到 V10.2.1 后,每當我們嘗試將 env-config 設置為“production”時,我們都會收到以下消息。
> node env-config/env-config "production"
在引擎蓋下它運行firebase use production
命令。 這是返回以下錯誤的時間
Error: Command failed: firebase use production
at ChildProcess.exithandler (child_process.js:383:12)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) {
killed: false,
code: 1,
signal: null,
cmd: 'firebase use production',
stdout: '\n' +
'\x1B[1m\x1B[31mError:\x1B[39m\x1B[22m Invalid project selection, please verify project \x1B[1mproduction\x1B[22m exists and you have access.\n',
stderr: ''
}
現在奇怪的部分來了:在相同的工作流程中,它還運行firebase use test
和firebase use staging
,這兩項工作都按預期進行。 在工作流程之外,只需手動運行firebase use production
工作。 有人有建議嗎?
我通過刷新工作流使用的 firebase 令牌來修復它。
我也遇到了同樣的問題,接受的答案對我來說並不清楚。
要創建新的 firebase 令牌,請在 firebase CLI 中使用以下命令
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.