but how to install on windows
Status Fixed / completed
Maintainer reply ✓ Yes — ashwin-ant
Workaround ✓ Mentioned in thread ↓
Activity 12 comments · opened Feb 26, 2025 · closed Feb 26, 2025
💡 Likely answer: A maintainer (ashwin-ant, collaborator)
responded on this thread — see the highlighted reply below.
but how to install on windows
there is video how to install but only on linux
https://www.youtube.com/watch?v=-9I8SQfBRTU
12 Comments
Microsoft Windows [Version 10.0.22631.4890]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\System32>npm install -g @anthropic-ai/claude-code
'npm' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32>
https://sebastian-petrus.medium.com/claude-code-3de245436ec5
<img width="1448" alt="Image" src="https://github.com/user-attachments/assets/6de774bd-c6a2-4d5f-9e40-d6c82ad7fa06" />
We don't support Windows directly (see system requirements). You'll need to use WSL if you're on Windows.
I think a little more elaboration is needed for the copy-pasted answer "You'll need to use WSL if you're on Windows."
Does that mean I run the
npm installwithin a linux instance running in WSL? Wouldn't that mean that Windows itself has absolutely no access to Claude Code? And that would mean my Windows Installation of VS Code cannot be used with Claude? That would seem (to me) to contradict the statement "Doesn't run directly on Windows" (which implies there is a WSL-based workaround for Windows) rather than "Doesn't run (at all) on Windows".I realise of the above may sound dumb to WSL experts... but I'm not, and neither are many other Windows users, so a little more help would be really useful.
^
https://chatgpt.com/canvas/shared/67f7d6f1bfb48191b463ae33000177c6 -> WSL in your IDE environment, properly setup is what is meant. I should have known this tbh. anways, hope this helps.
Great stuff... That link explains it well. Thanks
On Thu, Apr 10, 2025, 15:36 Scott Graham @.***> wrote:
Is Windows support on the roadmap? I am using the WSL route on my work computer and to say it is not as smooth as my personal Mac would be a massive understatement. It seems as though other folks do not have the same issues as me on WSL, so clearly there is a way to make this work and I'm just suffering from skill issues, but even then, if the extra layer could be removed, it would be so much nicer as a user to not have to cater to my tools and have them cater to me.
Now shipped: https://github.com/anthropics/claude-code/commit/d45bce242d8ac7ff13a2bab2e619558ab5f47dec
Hello @TomasHubelbauer !
I installed git and node on Windows and installed claude globally.
When I try to run Claude I get the following error:
Error: No suitable shell found. Claude CLI requires a Posix shell environment. Please ensure you have a valid shell installed and the SHELL environment variable set.My SHELL environment variable points to /c/Users/<user_name>/scoop/apps/git/current/bin/bash.exe
I am trying to open Claude from git-bash
Do you have any leads how I can fix it?
Try using PowerShell - that's what I'm using and it works for me.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.