What you might see
- CMD:
< was unexpected at this time.followed by HTML such as<!DOCTYPE html>(the first line is in your system language). - PowerShell:
The term 'System.Xml.XmlDocument' is not recognized as the name of a cmdlet, or parse errors quoting HTML/CSS such asMissing argument in parameter listorMissing expression after unary operator '--'. - Bash (WSL):
syntax error near unexpected token `<'. - Any:
curl: (22) The requested URL returned error: 403with no page.
1. Is Claude Code available in your country?
If the output mentions "App unavailable in region", Claude Code is not offered where you are. Check Anthropic's supported countries list.
2. Is a proxy or firewall blocking it?
A bare 403 can come from a corporate proxy or network filter. Test the connection in PowerShell (call curl.exe, because plain curl is an alias there):
curl.exe -sI https://downloads.claude.ai/claude-code-releases/latest
A first line with 200 means you reach the server. A 403 usually means a proxy or filter, or an unsupported region.
3. Retry, or install another way
- Wait a few minutes and run the original command again; this is often temporary.
- Use WinGet:
winget install Anthropic.ClaudeCode, then open a new terminal and runclaude --version. WinGet installs do not update themselves; usewinget upgrade Anthropic.ClaudeCode.
Saving the script with -OutFile install.ps1 does not help: the saved file is the same web page.
Other Claude Code install errors on Windows
- Full guide: install Claude Code on Windows
- 'irm' is not recognized / The token '&&' is not a valid statement separator
- 'claude' is not recognized after install or after an update
- running scripts is disabled on this system (npm install)
- requires either Git for Windows (for bash) or PowerShell
Source: Anthropic's Claude Code docs, Advanced setup and Troubleshoot installation and login, read 28 Nov 2026. Claude Code updates often: if a step here no longer matches, the official docs win.