[BUG] Fail to Fetch Latest Release from Install Script
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] 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
- Get a fresh Windows VM/Sandbox.
- Make sure its up to date on patches.
- Run
irm https://claude.ai/install.ps1 | iex - See error from failed install.
- 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.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗