Node バージョンアップ
node -v
npm -v
https://nodejs.org/ja/download
からダウンロード、インストールする。
npmバージョンアップ
npm install -g npm@latest
※nodeのインストールでもnpmは更新されるが最新にはならない。
Gemini CLIインストール
npm install -g @google/gemini-cli
gemini -v
初期設定
gemini
・Do you want to connect VS Code to Gemini CLI?
>1. Yes
※Failed to install VS Code companion extension. Please try installing ‘Gemini CLI Companion’ manually from the VS Code extension marketplace.
となったので後ほど個別でインストール
・How would you like to authenticate for this project?
>1. Login with Google
※ChromeからGoogleアカウントでログインして完了