Claude Code errors and fixes. 'claude' is not recognized, fsSL, Killed and 6 more
The exact error text from the terminal, why it appears and the command that fixes it. PATH on Windows, the wrong install command, Killed on a small server, WSL1, workspace trust and a skill ZIP.
Part of the guideClaude Code tutorial 2026, the complete guide. Install, errors, commands, skills and plugins
In this article
- 'claude' is not recognized as the name of a cmdlet
- A parameter cannot be found that matches parameter name 'fsSL'
- 'irm' is not recognized as an internal or external command
- The token '&&' is not a valid statement separator
- running scripts is disabled on this system
- Killed during install on Linux
- cannot execute binary file: Exec format error
- Workspace not trusted. The home directory is trusted one session at a time
- Zip must contain a SKILL.md file
- When the error is not on this list
- Questions about Claude Code errors
In short
Most Claude Code install errors come from three causes. The command was for another shell, PATH is missing the install folder, or memory ran out. Find your error below by its exact text. Each fix comes from the official Claude Code documentation. We checked them on 24 November 2026 with Claude Code 2.1.329.
You paste the install command, press Enter and get a red block of text instead of Claude. Most people then copy that text straight into Google. This page is built for that moment.
Every heading below is a real error message, written the way the terminal prints it. Under each one you will find the cause in one or two sentences and the command that fixes it. The commands come from the official installation troubleshooting page.
| Error text starts with | Usual cause | Fix |
|---|---|---|
'claude' is not recognized | Install folder not in PATH | Add .local\bin to PATH |
A parameter cannot be found fsSL | Linux command in PowerShell | Use irm |
'irm' is not recognized | PowerShell command in CMD | Use the CMD installer |
The token '&&' | CMD command in PowerShell | Use irm |
Killed | Not enough memory | Add swap |
Exec format error | WSL1 | Move to WSL2 |
Workspace not trusted | Home folder or no terminal | Start in a project folder |
Zip must contain a SKILL.md | Files zipped without their folder | Zip the folder itself |
'claude' is not recognized as the name of a cmdlet
PowerShell prints this when it cannot find the program. In CMD the same problem reads 'claude' is not recognized as an internal or external command. On a Mac it is zsh: command not found: claude.
The installer puts Claude Code in %USERPROFILE%\.local\bin on Windows and in ~/.local/bin on macOS and Linux. If that folder is not in PATH, the terminal does not look there. First check that the file exists, then add the folder to your user PATH.
Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')Close the terminal, open a new one and run claude --version. A terminal inside VS Code takes PATH from the editor, so restart the editor too. On macOS with Zsh, the same fix is two lines.
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcOn Linux with Bash, write to ~/.bashrc instead. If the error appeared right after an update on Windows, the documentation describes a separate case. The update could leave only a backup file named claude.exe.old with a number, and you rename it back.
A parameter cannot be found that matches parameter name 'fsSL'
You ran the macOS and Linux command curl -fsSL https://claude.ai/install.sh | bash in Windows PowerShell. In PowerShell, curl is another name for Invoke-WebRequest, and it does not know these flags. The same mix-up gives 'bash' is not recognized as the name of a cmdlet.
Use the PowerShell installer.
irm https://claude.ai/install.ps1 | iex'irm' is not recognized as an internal or external command
This time you are in CMD, not PowerShell. The prompt gives it away. PowerShell shows PS C:\, and CMD shows C:\ with no PS in front. Open PowerShell from the Start menu and run the command above. Or stay in CMD and use its own installer.
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdThe token '&&' is not a valid statement separator
The opposite case. You are in PowerShell but pasted the CMD command with &&. Run irm https://claude.ai/install.ps1 | iex instead. If the command only printed the text of a script and installed nothing, you ran half of it. irm on its own downloads and prints, and | iex is the part that runs it.
running scripts is disabled on this system
You see this after installing through npm, when PowerShell blocks the npm.ps1 or claude.ps1 launcher scripts. The setup guide recommends the native installer anyway, and that installer is not affected. If you stay with npm, allow local scripts for your own user only.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserKilled during install on Linux
A bare Killed line means the server ran out of memory. Newer installers say Installation was killed before it could finish with exit code 137. The Linux kernel stopped the installer. Installing needs roughly 512 MB of free memory. Running Claude Code needs at least 4 GB of RAM.
On a small VPS, add a 2 GB swap file and run the installer again.
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
curl -fsSL https://claude.ai/install.sh | bashSwap helps the install finish. For daily work on such a server, a larger instance is the calmer choice. The whole Linux install, including Ubuntu and Debian, is in installing Claude Code on Linux.
cannot execute binary file: Exec format error
This appears in WSL when your distribution still runs on WSL1. Claude Code supports WSL2, and the documentation lists WSL1 as not supported. Convert the distribution from PowerShell, then open it again.
wsl --set-version <DistroName> 2wsl -l -v lists your distributions and shows which WSL version each one uses. Inside WSL you install Claude Code with the Linux command, not the Windows one.
Workspace not trusted. The home directory is trusted one session at a time
Claude Code asks once whether you trust a folder before it works in it. For your home folder it never saves that answer. The message appears when a session starts in your home folder and the trust question cannot be shown. The error reference names scripts and background sessions as typical cases.
Open a terminal, change into the project folder and run claude there once. Accept the trust question, then start your command again from that folder. Working from a project folder instead of your whole home directory is also simply safer.
Zip must contain a SKILL.md file
This happens when you upload a skill to the Claude app. Claude looks for a folder with SKILL.md inside the archive. Anthropic's skills guide says a SKILL.md at the root of the ZIP is not recognised. Usually the files were zipped, not the folder that holds them.
zip -r my-skill.zip my-skill/
unzip -l my-skill.zipRun the first command from the folder that contains my-skill. In the listing, every entry should start with my-skill/. The folder name should also match the name field in SKILL.md. The full route for adding skills is in how to install Claude skills.
When the error is not on this list
Run claude doctor in your terminal. It checks the installation, settings and search, and suggests fixes. Sometimes the install command prints HTML, for example syntax error near unexpected token '<'. Then the download returned a web page instead of the script. That is a network or region issue, and a retry after a few minutes often helps.
This page is part of our complete Claude Code guide, which lists the install steps for every system. We build client web applications with the same tools, so we know these errors from our own machines. If you are planning such a system, see custom web applications.
Questions about Claude Code errors
Why does claude --version work in one window and not in another?
A window that was already open keeps the old PATH. Open a new terminal after the install. Terminals inside an editor take PATH from the editor, so restart the editor as well.
Is it safe to run the install command as administrator?
The documentation does not ask for it. The native installer writes to your user folder. Run it as a normal user, so files do not end up owned by another account.
Do I need Git for Windows?
It is optional. Without Git Bash, Claude Code uses PowerShell as its shell tool. Git for Windows is recommended when your project uses Bash scripts.
How do I check that Claude Code is up to date after a fix?
Run claude --version, then claude update. Native installs also update themselves in the background.
What if claude doctor itself does not start?
Then the problem is still PATH or the binary. Go back to the first section of this page and check that the file exists in .local/bin.
Start with the exact text of the error, not with a reinstall. In most cases one line in the right shell solves it.
What would you like to change in your business?
Leave your number. We will talk about your process and see whether we can help. The first call is free.
The service this text is about
Automation and AI / OCRAutomation of document re-typing, OCR and checking rules, and your data stays with you.