2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WindowsにClaude Codeをインストールする(備忘録)

2
Last updated at Posted at 2026-03-12

📝 はじめに

こんにちは、piyovateです。
これまで WSL環境ではClaude Codeを使っていたのですが、Windowsネイティブ環境でも使ってみたくなったのでインストールしてみました。

Windowsでのセットアップ手順を備忘録としてまとめておきます。


Claude Codeのインストール

Node.jsが入っている前提で、以下のコマンドを実行します。

npm install -g @anthropic-ai/claude-code

インストール確認

claude --version

Git Bashの準備

WindowsではClaude Codeを実行するために Git Bash が必要です。

Git for Windows をインストール
https://git-scm.com/downloads/win


Git Bashのパスを設定

Gitのインストール場所を確認します。

Get-Command git

C:\Users\ユーザー名\AppData\Local\Programs\Git\cmd\git.exe

この場合 bash.exe は次の場所にあります。

C:\Users\ユーザー名\AppData\Local\Programs\Git\bin\bash.exe

環境変数を設定

setx CLAUDE_CODE_GIT_BASH_PATH "C:\Users\ユーザー名\AppData\Local\Programs\Git\bin\bash.exe"

PowerShellを再起動します。


Claude Code起動

claude

起動するとテーマ選択が表示されます。

Choose the text style that looks best with your terminal

これでClaude Codeが起動できます。


まとめ

WindowsでClaude Codeを使う場合

  1. npmでClaude Codeをインストール
  2. Git Bashをインストール
  3. CLAUDE_CODE_GIT_BASH_PATH を設定

これで起動できました!
皆さんの参考になれば幸いです
それでは、また次回の記事でお会いしましょう ✨

2
0
0

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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?