Troubleshoot installation and login changedtroubleshoot-install
Nearest release: v2.1.269, published 8 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−29removed
From line
391
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits28to this page, all time
The whole hunk
from line 391, old and new numbered
/
from line 391
391391
392392The `curl ... | bash` command downloads the script and pipes it to Bash for execution. This error, and the related `curl: (23) Failure writing output to destination`, means Bash did not receive the complete script. Exit code 56 indicates the download itself was interrupted, and exit code 23 indicates curl could not write what it received to the pipe, usually because Bash exited early.
393393
394**Solutions:**
395
3961. **Check network stability**: Claude Code binaries are hosted at `downloads.claude.ai`. Test that you can reach it:
397
398 ```bash theme={null}
399 curl -sI https://downloads.claude.ai/claude-code-releases/latest
400 ```
401
402 An `HTTP/2 200` line means you reached the server and the original failure was likely intermittent; retry the install command. Other results point to the cause:
403
404 * `403`: usually a proxy or network filter blocking the host, or Claude Code is [not available in your region](https://www.anthropic.com/supported-countries)
405 * `5xx`: usually a temporary service issue; wait a few minutes and retry
406 * `Could not resolve host` or a connection timeout: your network is blocking the download
407
4082. **Try an alternative install method**:
409
410 On macOS:
411
412 ```bash theme={null}
413 brew install --cask claude-code
414 ```
415
416 On Windows:
417
418 ```powershell theme={null}
419 winget install Anthropic.ClaudeCode
420 ```
421
422 Then run `claude --version` to confirm: the command prints a version number such as `2.1.211 (Claude Code)`. If the shell reports `claude` isn't found, open a new terminal window and retry: the session you installed from keeps its old `PATH`.
394Test that you can reach `downloads.claude.ai` with the check in [Check network connectivity](#check-network-connectivity). If you reached the server, the original failure was likely intermittent; retry the install command. You can also [try an alternative install method](/docs/en/setup#install-claude-code).
423395
424396### Homebrew cask unavailable or outdated
425397
No line in this hunk matches that.