Installation errors
These errors appear while installing or updating Claude Code, from the install script, claude install, or claude update. For command not found, PATH, permission, and TLS problems during setup, see Troubleshoot installation and login.
Installation was killed before it could finish
The install script reports when the claude install step is terminated by a signal. On Linux, exit code 137 means the process received SIGKILL, and on a low-memory host that's usually the kernel out-of-memory (OOM) killer. The script prints this explanation and exits with code 137:
Installation was killed before it could finish (exit code 137). This usually means the system ran out of memory.
Claude Code needs roughly 512MB of free memory to install. Free up memory, then run this script again.For any other fatal signal, and for exit code 137 on macOS, the script prints Installation was killed before it could finish (exit code <N>) with the actual exit code and omits the out-of-memory explanation. The message comes from the install script macOS and Linux use, which also covers installs inside WSL; the native Windows install scripts never print it. Before v2.1.200, the script exited with only the shell's bare Killed line.
What to do:
- Stop other processes to free memory, then rerun the installer
- Add swap space or move to a larger instance. See Install killed on low-memory Linux servers for the swap-file commands.
The connection dropped while downloading the update
The connection to the download server closed while claude install, claude update, or the automatic updater was fetching the Claude Code binary, and the retries didn't recover. Claude Code retries the download when the connection drops, the transfer stalls, or the downloaded file fails its checksum, up to three attempts in total. A completed HTTP error, such as a 404, isn't retried because the server already answered. Before v2.1.202, a single dropped connection failed the download immediately with the bare error aborted instead of retrying.
The connection dropped while downloading the update (attempt 3/3: aborted). Check your network — proxies sometimes cut off large downloads.The text in parentheses names which attempt failed and the underlying network error. claude update precedes the message with Error: Failed to install native update on stderr.
A download that stays connected but doesn't finish within 10 minutes fails with Download timed out: exceeded the total deadline instead. Claude Code doesn't retry a timed-out download, because a connection too slow to finish inside the deadline won't finish on an immediate retry either. The steps below apply to both messages.
The usual cause is a proxy or gateway that closes a long transfer before it finishes. The Claude Code binary is a large download, so a proxy connection limit that never affects normal API traffic can still interrupt it.
What to do:
- Run
claude updateagain. On an otherwise healthy network, the download usually succeeds on the next run. For the timed-out message, run it again from a faster or less throttled network. - If your network requires a proxy, set
HTTPS_PROXYbefore running the installer orclaude update. See Check network connectivity. - If a corporate proxy keeps closing the transfer, ask your network team to allow the full download from
downloads.claude.ai. See Network access requirements. - Run
claude doctorfrom your shell for installation diagnostics