← Claude Docs

Troubleshoot installation and login - Claude Code Docs

Claude Docs · April 28, 2026
The documentation presents troubleshooting guidance for Claude Code installation and login failures through an error-matching reference table paired with diagnostic procedures. It addresses network connectivity, PATH configuration, conflicting installations, directory permissions, and binary validation across macOS, Linux, and Windows platforms with platform-specific commands and solutions.

Detailed Analysis

Anthropic's official Claude Code troubleshooting documentation addresses the full spectrum of installation and authentication failures users encounter across macOS, Linux, and Windows platforms, providing a structured diagnostic framework organized around specific error messages and symptoms. The documentation maps discrete error strings — from `command not found: claude` to `dyld: Symbol not found` on macOS — directly to targeted remediation steps, reducing the cognitive burden on users attempting to resolve failures independently. Central to the guide is a quick-reference error table that links observable symptoms to named solution sections, allowing practitioners to bypass generalized troubleshooting and proceed immediately to platform-relevant fixes. The documentation also introduces `claude doctor` as an automated diagnostic tool, which generates a full system report that users can attach to support requests, reflecting Anthropic's recognition that installation environments vary enough to require programmatic introspection.

PATH misconfiguration emerges as the single most common source of post-installation failure, with the documentation dedicating substantial attention to verifying and correcting shell environment variables across Zsh, Bash, PowerShell, and CMD. The installer places the Claude binary at `~/.local/bin/claude` on macOS and Linux, or `%USERPROFILE%\.local\bin\claude.exe` on Windows, but shell sessions that predate the install do not automatically inherit the updated PATH. The documentation provides shell-specific one-liners for both detecting and correcting this condition, and additionally flags the risk of conflicting installations arising from legacy npm-based installs in `~/.claude/local/` coexisting with newer native installer binaries, which can produce version mismatch behavior that is difficult to diagnose without explicitly enumerating all binaries resolved by PATH.

Corporate and enterprise network environments represent a structurally distinct failure category that the documentation treats with particular depth. Downloads originate from `downloads.claude.ai`, and organizations with restrictive egress filtering or TLS inspection may silently block the installer, producing misleading error messages such as `curl: (56) Failure writing output to destination` or TLS connection failures that superficially resemble client-side certificate problems. The documentation advises setting `HTTP_PROXY` and `HTTPS_PROXY` environment variables prior to running the installer and provides parallel command sequences for macOS/Linux and Windows PowerShell, acknowledging that IT-managed machines frequently require proxy configuration before any outbound tool installation can succeed. The CA certificate update guidance for TLS errors is particularly relevant in environments where corporate proxies perform SSL inspection with internally-issued certificates not present in the system trust store.

The authentication section of the documentation reflects the layered credential architecture that Claude Code must navigate, distinguishing between standard OAuth flows targeting `claude.ai/login` and the distinct credential mechanisms required for enterprise deployments using AWS Bedrock, Google Vertex AI, or Foundry. Errors such as `ChainedTokenCredential authentication failed` and `Could not load credentials from any providers` signal failures in cloud-provider credential chains rather than in Anthropic's own authentication system, a distinction that is operationally significant for enterprise teams managing Claude Code alongside existing cloud infrastructure. The documentation's inclusion of a regional availability notice — directing users experiencing `App unavailable in region` errors to a supported-countries list — also acknowledges that Claude Code's geographic rollout remains incomplete, adding a non-technical constraint layer that technical troubleshooting steps cannot resolve.

Taken together, this documentation reflects a maturation pattern common to developer tooling that has transitioned from early-adopter audiences to broader enterprise deployment. The explicit handling of Windows-specific shell confusion, 32-bit architecture incompatibility, WSL1 binary format errors, and corporate proxy scenarios indicates that Anthropic has encountered and catalogued a wide distribution of real-world installation environments rather than designing exclusively for idealized Unix developer workstations. The parallel maintenance of a native installer alongside npm-based installation paths — with the native installer explicitly recommended for environments where npm permission issues or Node.js version constraints complicate the npm route — illustrates a pragmatic acknowledgment that dependency management complexity remains a friction point in agentic AI tooling adoption, and that reducing that friction through bundled runtime distribution is a strategic priority for accelerating Claude Code's reach across heterogeneous enterprise environments.

Read original article →