Hostingに利用しているfirebaseに手を加えようとデプロイしたら怒られた.
okomeum$ firebase deploy
Error: Failed to get Firebase project okomeum-web. Please make sure the project exists and your account has permission to access it.
エラーの日本語訳
エラー:Firebaseプロジェクトokomeum-webの取得に失敗しました。プロジェクトが存在し、アカウントにプロジェクトへのアクセス許可があることを確認してください。
確認
・firebaseを確認しプロジェクトがあることを確認
・アカウントのアクセス権が死んでかも(ログアウト&ログインし直して確認)
ログアウト
okomeum$ firebase logout
⚠ Invalid refresh token, did not need to deauthorize
✔ Logged out from hogehoge@gmail.com
ログイン
okomeum$ firebase login
i Firebase optionally collects CLI usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.
? Allow Firebase to collect CLI usage and error reporting information? Yes
i To change your data collection preference at any time, run `firebase logout` and log in again.
Visit this URL on this device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Waiting for authentication...
✔ Success! Logged in as hogehoge@gmail.com
いけた
okomeum$ firebase deploy
=== Deploying to 'okomeum-web'...
i deploying hosting
i hosting[okomeum-web]: beginning deploy...
i hosting[okomeum-web]: found 0 files in public
✔ hosting[okomeum-web]: file upload complete
i hosting[okomeum-web]: finalizing version...
✔ hosting[okomeum-web]: version finalized
i hosting[okomeum-web]: releasing new version...
✔ hosting[okomeum-web]: release complete
✔ Deploy complete!
Project Console: https://console.firebase.google.com/project/okomeum-web/overview
Hosting URL: https://okomeum-web.web.app