インストール
- Node.js 18以上
- Anthropicアカウント(anthropic.com で作成)
- ターミナル(macOS/Linux: Terminal、Windows: PowerShell またはWSL)
インストール手順
Section titled “インストール手順”1. npmでインストール
Section titled “1. npmでインストール”npm install -g @anthropic-ai/claude-code2. 動作確認
Section titled “2. 動作確認”claude --versionバージョン番号が表示されれば成功です。
3. ログイン
Section titled “3. ログイン”claude初回起動時にブラウザが開き、Anthropicアカウントでのログインを求められます。
Windowsでの注意点
Section titled “Windowsでの注意点”Windowsでは WSL(Windows Subsystem for Linux) 経由での利用が最も安定しています。
PowerShellでも動きますが、一部の機能でパスの問題が発生することがあります。
# PowerShellの場合npm install -g @anthropic-ai/claude-codeアップデート方法
Section titled “アップデート方法”npm update -g @anthropic-ai/claude-code最新バージョンの確認は最新情報ページで。