claude-code - 💡(How to fix) Fix [BUG] Fail to Fetch Latest Release from Install Script [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51733Fetched 2026-04-22 07:54:18
View on GitHub
Comments
1
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

  1. See error from failed install. If the endpoint is failing due to load or anything else, it would be good to capture that in the catch and state it clearly in the error. Currently it just throws the error via $_ which is almost never user readable.

Fix Action

Fix / Workaround

When installing from https://claude.ai/install.ps1 the script uses Invoke-WebRequest to fetch the latest version. This can fail due to the new prompting for -UseBasicParsing which was released in an security patch: http://support.microsoft.com/en-us/topic/powershell-5-1-invoke-webrequest-preventing-script-execution-from-web-content-7cb95559-655e-43fd-a8bd-ceef2406b705

  1. Get a fresh Windows VM/Sandbox.
  2. Make sure its up to date on patches.
  3. Run irm https://claude.ai/install.ps1 | iex
  4. See error from failed install.
  5. Note that the script incorrectly exists with ✅ Installation complete!

Code Example

Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: unable to get local issuer certificate
RAW_BUFFERClick to expand / collapse

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?

When installing from https://claude.ai/install.ps1 the script uses Invoke-WebRequest to fetch the latest version. This can fail due to the new prompting for -UseBasicParsing which was released in an security patch: http://support.microsoft.com/en-us/topic/powershell-5-1-invoke-webrequest-preventing-script-execution-from-web-content-7cb95559-655e-43fd-a8bd-ceef2406b705

What Should Happen?

No prompting. The install continues as expected.

Error Messages/Logs

Failed to fetch version from https://downloads.claude.ai/claude-code-releases/latest: unable to get local issuer certificate

Steps to Reproduce

  1. Get a fresh Windows VM/Sandbox.
  2. Make sure its up to date on patches.
  3. Run irm https://claude.ai/install.ps1 | iex
  4. See error from failed install.
  5. Note that the script incorrectly exists with ✅ Installation complete!

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.92

Claude Code Version

n\a

Platform

Google Vertex AI

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

If the endpoint is failing due to load or anything else, it would be good to capture that in the catch and state it clearly in the error. Currently it just throws the error via $_ which is almost never user readable.

extent analysis

TL;DR

The installation script may need to be updated to handle the new prompting for -UseBasicParsing and certificate validation.

Guidance

  • The error message suggests a certificate issue, which could be related to the security patch mentioned, so checking the certificate configuration and updating the script to handle it properly might be necessary.
  • The script's use of Invoke-WebRequest should be reviewed to ensure it is properly configured for the new security requirements, possibly by adding the -SkipCertificateCheck parameter or configuring the certificate validation.
  • To improve error handling, consider modifying the catch block to provide more user-friendly error messages instead of just throwing the error via $_.
  • Verify that the issue is indeed related to the security patch and the new prompting for -UseBasicParsing by checking the PowerShell version and the script's behavior with and without the patch.

Example

# Example of using Invoke-WebRequest with certificate validation
Invoke-WebRequest -Uri "https://downloads.claude.ai/claude-code-releases/latest" -SkipCertificateCheck

Notes

The provided information suggests a regression introduced by a security patch, but without the exact script code or more details about the certificate configuration, it's difficult to provide a definitive fix. The suggestions above are based on the error message and the mentioned security patch.

Recommendation

Apply workaround: Update the installation script to handle the new security requirements, such as adding the -SkipCertificateCheck parameter or properly configuring certificate validation, to mitigate the issue until a more permanent fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING