claude command not working in windows terminal

Status Closed — duplicate
Maintainer reply ✓ Yes — 8enmann
Activity 13 comments · opened Feb 25, 2025 · closed Feb 25, 2025
💡 Likely answer: A maintainer (8enmann, collaborator) responded on this thread — see the highlighted reply below.

installed claude following guide here https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#before-you-begin

getting errors on shell, tried below in my windows 11

Terminal: errors
cmd: errors
bash: blank

node -v
v23.1.0

git -v
git version 2.45.1.windows.1

!Image

!Image

View original on GitHub ↗

13 Comments

normanlove222 · 1 year ago

im having similar issues with Windows 10, using PowerShell. I have to type npx claude and it shows the initial screen asking to make a choice of text style, but it just goes back to the prompt, no chance to make a selection or anything. not coded properly or buggy. unusable

D:\wamp64\www\pdj>npx --version
11.1.0

petersephrin · 1 year ago

Same here! I am running claude command on Windows and it terminates without any other inputs and shows the same error.

zakblacki · 1 year ago

Same issue

!Image

emberfish · 1 year ago

same here

lupuleasa-core · 1 year ago

same error

freshly installed npm and claude-code on win10 an hour ago

Memenho · 1 year ago

yeah same

lupuleasa-core · 1 year ago

UPDATE on workaround fix: Run the claude command inside Git bin bash

!Image

Works for windows 10 machines

EDIT: Nevermind, claude-code is not currently supported for windows

lupuleasa-core · 1 year ago

the app is at capacity atm at the API authenticate step anyway

let's wait for anthropic team to expand

!Image

8enmann collaborator · 1 year ago

Our suggested usage for Windows is WSL with Node 20+. Does that work for y'all?

zakblacki · 1 year ago

I can confirm that it's only working when launching with git bash

lupuleasa-core · 1 year ago

Windows is not supported, you need linux machine or WSL
new version now has an error to notify us


npm error code EBADPLATFORM
npm error notsup Unsupported platform for @anthropic-ai/claude-code@0.2.14: wanted {"os":"!win32"} (current: {"os":"win32"})
normanlove222 · 1 year ago

I was successfully able to get WSL loaded correctly on windows 10. the
issue was node.js and NPM had to be completely uninstalled system wide and
then readded, then and only then did WSL allow me to boot up claude code.
Been running it all day. The API charges are high with thinking on im
finding out. Have not been able to figure out how to turn thinking off
though.

On Wed, Feb 26, 2025 at 1:34 AM Lup @.***> wrote:

Windows is not supported, you need linux machine or WSL new version now has an error to notify us npm error code EBADPLATFORM npm error notsup Unsupported platform for @@.: wanted {"os":"!win32"} (current: {"os":"win32"}) — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/58#issuecomment-2684417550>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAQKMF6JEWV347KC4D4Z7GT2RWDBRAVCNFSM6AAAAABXZYXOAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBUGQYTONJVGA> . You are receiving this because you commented.Message ID: @.> [image: lupuleasa-core]lupuleasa-core left a comment (anthropics/claude-code#58) <https://github.com/anthropics/claude-code/issues/58#issuecomment-2684417550> Windows is not supported, you need linux machine or WSL new version now has an error to notify us npm error code EBADPLATFORM npm error notsup Unsupported platform for @@.: wanted {"os":"!win32"} (current: {"os":"win32"}) — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/58#issuecomment-2684417550>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAQKMF6JEWV347KC4D4Z7GT2RWDBRAVCNFSM6AAAAABXZYXOAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBUGQYTONJVGA> . You are receiving this because you commented.Message ID: @.>

--
Thank You, 🙏


✨Norman 💖 ✨

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.