but how to install on windows

Status Fixed / completed
Maintainer reply ✓ Yes — ashwin-ant
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

View original on GitHub ↗

12 Comments

Sandy4321 · 1 year ago

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>

Sandy4321 · 1 year ago

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" />

ashwin-ant collaborator · 1 year ago

We don't support Windows directly (see system requirements). You'll need to use WSL if you're on Windows.

GregWoods · 1 year ago

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 install within 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.

cheddarfox · 1 year ago

^

cheddarfox · 1 year ago
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 install within 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.

GregWoods · 1 year ago

Great stuff... That link explains it well. Thanks

On Thu, Apr 10, 2025, 15:36 Scott Graham @.***> wrote:

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 install within 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. — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/151#issuecomment-2793857389>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AACUEY24PFBQDSKLX5ETEID2YZ6VXAVCNFSM6AAAAABX6C6TMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJTHA2TOMZYHE> . You are receiving this because you commented.Message ID: @.***> cheddarfox left a comment (anthropics/claude-code#151) <https://github.com/anthropics/claude-code/issues/151#issuecomment-2793857389> 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 install within 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. — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/151#issuecomment-2793857389>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AACUEY24PFBQDSKLX5ETEID2YZ6VXAVCNFSM6AAAAABX6C6TMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJTHA2TOMZYHE> . You are receiving this because you commented.Message ID: @.***>
TomasHubelbauer · 1 year ago

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.

TayfunTurgut · 1 year ago

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?

TomasHubelbauer · 1 year ago

Try using PowerShell - that's what I'm using and it works for me.

github-actions[bot] · 1 year ago

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.