Skip to content

[BUG] Native windows install fails #18183

Description

@gattimassimo

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Context: I have a Surface 7 ARM laptop and latest Windows updates, Powershell.

While I'm not able to install Claude code using Powershell (the claude.exe is not dropped in C:\Users\magatti.local\bin\claude.exe) I read about multiple issues and workarounds and none of them unblocks, the issue still persists.

Then I switched over to use cmd as documented in the claude code setup steps and I found a bug which blocks the installation. See repro steps.

It seems that if I download the cmd file and run it locally it works, but if I use the one line command it doesn't.

Thanks

What Should Happen?

The setup steps documented on this page should work.

https://code.claude.com/docs/en/quickstart#step-1:-install-claude-code

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Error Messages/Logs

I'd be happy to know how to get some logs, better error messages during the install process.

Steps to Reproduce

`
C:\Users\magatti\claudeDowloadSetup>curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Setting up Claude Code...

Installing Claude Code native build latest...
Installation failed

C:\Users\magatti\claudeDowloadSetup>curl -fsSL https://claude.ai/install.cmd -o install.cmd

C:\Users\magatti\claudeDowloadSetup>install.cmd
Setting up Claude Code...

√ Claude Code successfully installed!

Version: 2.1.7

Location: C:\Users\magatti.local\bin\claude.exe

Next: Run claude --help to get started
Warning: Could not remove temporary file: C:\Users\magatti.claude\downloads\claude-2.1.7-win32-x64.exe

Installation complete!

C:\Users\magatti\claudeDowloadSetup>
`

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.7

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions