[BUG] claude in Windows with side effects after using some commands

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 11 comments · opened Jul 11, 2025 · closed Oct 27, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: claude in Windows with side effects after using some commands
  • Claude CLI version: 1.0.51 (Claude Code)
  • Operating System: Windows 11
  • Terminal: Windows Terminal

Bug Description

When installing claude on Windows, I ran the commands claude migrate-installer and claude install stable, and when I called Claude I got this behaviour

<img width="1920" height="1020" alt="Image" src="https://github.com/user-attachments/assets/df40f834-6069-4a02-89e5-9154d3873865" />

Steps to Reproduce

  1. claude migrate-installer
  2. claude install stable
  3. claude

Expected Behavior

I hope claude works correctly on Windows as well as Linux.

Actual Behavior

Nothing to add

Additional Context

Nothing to add

View original on GitHub ↗

11 Comments

ant-kurt collaborator · 1 year ago

There are some issues with the installer at the moment - please use the npm version for now. Will have an update on this soon!

Also @joseanoxp - can you provide more details on your Windows 11 version? Home, Pro, Server, etc; x86_64 or ARM?

joseanoxp · 1 year ago

Windows 11 Pro Edition
Version 24H2
Installed on 08/04/2025
OS build 26100.4652
Windows Experience Resource Pack 1000.26100.128.0

Processor Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz (2.50 GHz)
Installed RAM 32.0 GB (usable: 31.8 GB)
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input available for this video

ant-kurt collaborator · 1 year ago

@joseanoxp this should be working in 1.0.58 - want to give that a try and let me know if you're still having issues?

joseanoxp · 1 year ago

I can get the native installation and use it normally, but I've identified a new bug I think:

I believe this behaviour is not normal, what does the output /c: /c: Is a directory in the image below mean?

<img width="551" height="279" alt="Image" src="https://github.com/user-attachments/assets/502f97c3-5a7e-42ee-b3d2-89648a232a96" />

ant-kurt collaborator · 1 year ago

That message is coming from an issue with one of the validation checks - should have no impact, but we'll have this addressed in the next release or two.

joseanoxp · 1 year ago

This command is still having problems:

<img width="912" height="283" alt="Image" src="https://github.com/user-attachments/assets/a81dfd5a-5982-47e1-b00c-ca68789f2208" />

ant-kurt collaborator · 1 year ago

Hmm - can you run with --debug?

joseanoxp · 1 year ago

Here is the output with the --debug option:

<img width="910" height="310" alt="Image" src="https://github.com/user-attachments/assets/fa91d24c-1e60-41d7-87aa-6f4ba9f579fd" />

NorthDream-Y · 1 year ago

PS C:\Users\14927> $env:DEBUG="*"
PS C:\Users\14927> claude migrate-installer
spawn-rx Failed to find executable anywhere in path +0ms
spawn-rx Failed to find executable anywhere in path +4ms
spawn-rx Failed to find executable anywhere in path +4ms
spawn-rx Failed to find executable anywhere in path +2ms
spawn-rx Failed to find executable anywhere in path +2ms
spawn-rx Failed to find executable anywhere in path +3ms

Claude Code Local Installer
This will install Claude Code to ~/.claude/local
instead of using a global npm installation.
Press Enter to continue or Esc to exit

spawn-rx Failed to find executable anywhere in path +69ms
spawn-rx Failed to find executable anywhere in path +2ms
spawn-rx Failed to find executable anywhere in path +4ms
spawn-rx Failed to find executable anywhere in path +3ms

Installing Claude Code locally...

· Installing to C:\Users\14927.claude\local\claude

follow-redirects options {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/',
method: 'HEAD',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'Cache-Control': 'no-cache',
'User-Agent': 'axios/1.8.4',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: undefined, https: undefined },
auth: undefined,
family: undefined,
beforeRedirect: [Function: fN9],
beforeRedirects: { proxy: [Function: Z] },
hostname: 'www.google.com',
port: '',
agent: undefined,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [Array],
STATUS_CODES: [Object],
Agent: [Function],
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function],
validateHeaderValue: [Function],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter],
WebSocket: [Getter],
CloseEvent: [Getter],
MessageEvent: [Getter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: [Agent],
Server: [Function: Server],

✗ Installation failed

Install of @anthropic-ai/claude-code failed

Press Enter to continue or Esc to exit

_### My environment is fine — Node.js, npm, and Git are all installed and working, and my PATH variables are correctly set.
However, when I run claude migrate-installer on Windows, it keeps showing spawn-rx Failed to find executable anywhere in path and finally fails with Installation failed.
_

joseanoxp · 1 year ago

Any updates for this problem? @ant-kurt

github-actions[bot] · 9 months 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.