我正在嘗試安裝 firebase 身份驗證,它要求在 cli 中提供授權碼。無論我如何檢查,我都沒有看到任何授權代碼(我在 firebaseConfig 中提供了 web api 密鑰等)我是否遺漏了一些明顯的東西?這是我在 cli 中的步驟:
ng add @angular/fire
Skipping installation: Package already installed
UPDATE package.json (1493 bytes)
? What features would you like to setup? Authentication
Using firebase-tools version 10.2.0
? Allow Firebase to collect CLI usage and error reporting information? No
? Enter authorization code:
uj5u.com熱心網友回復:
我有同樣的問題。我按照以下步驟解決了它:
1/ 首先,您必須連接您的 Firebase 帳戶
> firebase login
2/接下來,檢查連接是否正常(你需要首先在firebase上創建你的專案才能在結果中看到它)
> firebase projects:list
3/然后,你需要初始化firebase
> firebase init
4/ 現在您可以添加以下命令
> ng add @angular/fire
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/425744.html
