1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Gemini CLIで「Failed to login. Message: Precondition check failed.」の対処法

Posted at

Gemini CLIをupdateした

npm install -g @google/gemini-cli

Loginを求められ、エラーになる

キャプチャ撮り忘れ。

1. Login with Google

Enter → OAuth認証 → OK画面 → CLIではエラー

Issues確認

先人の知恵を借りる。

確認と対応

cat ~/.zshrc | grep GOOGLE_CLOUD_PROJECT

私は環境変数を設定していたので、一旦末尾に

unset GOOGLE_CLOUD_PROJECT

元々使用していたフォルダを退避

mv ~/.gemini ~/.gemini_bk

再度チャレンジ

gemini

スクリーンショット 2025-08-06 15.35.41.png

おk

誰かの救いになれば。

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?