can't open it : Write-Error "Claude Code does not support 32-bit Windows. Please use a 64-bit version of Windows." #1920
Replies: 2 comments
|
I have claude app running normally , and have win 64x |
|
That message is from Anthropic's installer, and the check is about the PowerShell process, not about Windows: if (-not [Environment]::Is64BitProcess) {
Write-Error "Claude Code does not support 32-bit Windows. Please use a 64-bit version of Windows."
}
Run this in the exact window you used: [Environment]::Is64BitProcess
[Environment]::Is64BitOperatingSystem
$PSHOME
$env:PROCESSOR_ARCHITECTURE
$env:PROCESSOR_ARCHITEW6432
Your log shows Either way, once a 64-bit shell has Maintainer note: |
Uh oh!
There was an error while loading. Please reload this page.
I got this error
==> Choosing coding agents
Install Claude Code for fcc-claude? [Y/n]: y
Install Codex for fcc-codex? [Y/n]: n
Install Pi for fcc-pi? [Y/n]: n
Install OpenCode for fcc-opencode? [Y/n]: n
Install Cline CLI for fcc-cline? [Y/n]: n
Hermes Agent already installed; will verify.
Install DeepSeek Harness for fcc-dsh? [Y/n]: n
Install Grok Build for fcc-grok? [Y/n]: n
Install Muse Code for fcc-muse? [Y/n]: n
Install Aider for fcc-aider? [Y/n]: n
Enable RTK token optimization globally for the selected coding agents? [y/N]: y
==> Ensuring uv 0.12.13 or newer is installed
uv 0.12.17 already satisfies >=0.12.13; leaving it unchanged.
==> Ensuring Claude Code is installed
opened the file that mentioned :
param(
[Parameter(Position=0)]
[ValidatePattern('^(stable|latest|\d+.\d+.\d+(-[^\s]+)?)$')]
[string]$Target = "latest"
)
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$ProgressPreference = 'SilentlyContinue'
Check for 32-bit Windows
if (-not [Environment]::Is64BitProcess) {
Write-Error "Claude Code does not support 32-bit Windows. Please use a 64-bit version of Windows."
exit 1
}
$DOWNLOAD_BASE_URL = "https://downloads.claude.ai/claude-code-releases"
$DOWNLOAD_DIR = "$env:USERPROFILE.claude\downloads"
Use native ARM64 binary on ARM64 Windows, x64 otherwise
if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
$platform = "win32-arm64"
} else {
$platform = "win32-x64"
}
New-Item -ItemType Directory -Force -Path $DOWNLOAD_DIR | Out-Null
Always download latest version (which has the most up-to-date installer)
try {
$version = Invoke-RestMethod -Uri "$DOWNLOAD_BASE_URL/latest" -ErrorAction Stop
}
catch {
Write-Error "Failed to get latest version: $_"
exit 1
}
Reject non-version content (e.g. an HTML error page) before it reaches the manifest URL
if ($version -notmatch '^\d+.\d+.\d+') {
Write-Error "Failed to get a valid version from downloads.claude.ai (got unexpected content). This can happen if the download service is unreachable or not available in your region - see https://www.anthropic.com/supported-countries"
exit 1
}
try {
$manifest = Invoke-RestMethod -Uri "$DOWNLOAD_BASE_URL/$version/manifest.json" -ErrorAction Stop
$checksum = $manifest.platforms.$platform.checksum
}
catch {
Write-Error "Failed to get manifest: $_"
exit 1
}
Download and verify
$binaryPath = "$DOWNLOAD_DIR\claude-$version-$platform.exe"
try {
Invoke-WebRequest -Uri "$DOWNLOAD_BASE_URL/$version/$platform/claude.exe" -OutFile $binaryPath -ErrorAction Stop
}
catch {
Write-Error "Failed to download binary: $_"
if (Test-Path $binaryPath) {
Remove-Item -Force $binaryPath
}
exit 1
}
Calculate checksum
$actualChecksum = (Get-FileHash -Path $binaryPath -Algorithm SHA256).Hash.ToLower()
if ($actualChecksum -ne $checksum) {
Write-Error "Checksum verification failed"
Remove-Item -Force $binaryPath
exit 1
}
Run claude install to set up launcher and shell integration
Write-Output "Setting up Claude Code..."
try {
if ($Target) {
& $binaryPath install $Target
}
else {
& $binaryPath install
}
# Native exit codes don't trigger $ErrorActionPreference - capture explicitly
$installExitCode = $LASTEXITCODE
}
finally {
try {
# Clean up downloaded file
# Wait a moment for any file handles to be released
Start-Sleep -Seconds 1
Remove-Item -Force $binaryPath
}
catch {
Write-Warning "Could not remove temporary file: $binaryPath"
}
}
if ($installExitCode -ne 0) {
Write-Error "Installation failed (exit code $installExitCode)"
exit $installExitCode
}
Write-Output ""
Write-Output "$([char]0x2705) Installation complete!"
Write-Output ""
All reactions