# How to install Claude Code

Run curl -fsSL https://claude.ai/install.sh | bash in a terminal to install Claude Code on Mac or Linux. Below: the Windows command, the 4 GB RAM check and 3 fixes.

Tool: Claude. By Julien Lieben. Updated 2026-11-27. Source: https://coldiq.com/university/claude/how-to-install-claude-code

## In short

- On Mac, Linux and WSL (Linux inside Windows), one command installs Claude Code: curl -fsSL https://claude.ai/install.sh | bash.
- On Windows, run irm https://claude.ai/install.ps1 | iex in PowerShell (the Windows terminal app). You do not need admin rights.
- After the install, open a new terminal window (the app where you type commands). Run claude --version to check that it worked.
- You need 4 GB of RAM (computer memory). You also need one of these systems or later: macOS 13, Windows 10 1809, Ubuntu 20.04, Debian 10, Alpine 3.19.
- The first time you type claude, your browser opens so you can sign in with a paid Claude plan.

Video: [Installing Claude Code](https://www.youtube.com/watch?v=0kILa02vKuI)

## Steps

1. Open your terminal: Terminal on Mac or Linux, PowerShell on Windows.
2. Paste the command and press Enter.
3. Type claude, press Enter, and sign in when the browser opens.

## What is a terminal, and how do you open it?

A terminal is an app where you type instructions for your computer instead of clicking. Each instruction is a command. You type it, press Enter, and the computer runs it.

On a Mac, press Cmd+Space, type Terminal and press Enter. On Windows, open the Start menu, type PowerShell and open it.

On Windows, you can tell which one you are in. PowerShell shows PS C:\ at the start of the line. CMD shows C:\ without PS.


## What do you need before you install Claude Code?

Check these points first. Most failed installs come from one of them.

- A recent system. Any of these versions or later works: macOS 13.0, Windows 10 version 1809, Ubuntu 20.04, Debian 10, Alpine Linux 3.19.
- At least 4 GB of RAM.
- An internet connection, from a country Anthropic supports.
- A paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account (pay per use). The Free plan does not include Claude Code.


## How do you install Claude Code on Windows?

Open PowerShell and paste irm https://claude.ai/install.ps1 | iex, then press Enter. You do not need to run it as Administrator.

If you are in CMD instead, use the CMD command from Anthropic’s setup page. It downloads an install file, runs it and deletes it.

Installing Git for Windows (a free tool that tracks file changes) is optional but recommended. Without it, Claude Code runs its commands through PowerShell. You can also install Claude Code inside WSL, the Linux system built into Windows, with the Mac and Linux command.

Tip: If you see "The token && is not a valid statement separator", you are in PowerShell with the CMD command. If you see "irm is not recognized", you are in CMD with the PowerShell command.


## Are there other ways to install Claude Code?

Yes. You may already use a package manager, a tool that installs and updates apps for you. If so, you can use it instead. The difference: these installs do not update Claude Code on their own.

- Homebrew on Mac: brew install --cask claude-code
- WinGet on Windows: winget install Anthropic.ClaudeCode
- npm, if you have Node.js 22 or later: npm install -g @anthropic-ai/claude-code@latest
- apt, dnf or apk on Debian, Ubuntu, Fedora, RHEL and Alpine, with the steps from Anthropic’s setup page.

Tip: Never install with sudo npm install -g. It causes permission problems, and Claude Code then cannot update itself.


## How do you check the install and start your first session?

The installer shows no progress bar while it downloads. Wait until the terminal is ready for typing again, then follow these steps.

1. Close the terminal and open a new window.
2. Type claude --version and press Enter. A number such as 2.1.211 (Claude Code) means it worked.
3. Go to the folder you want to work in. Type cd followed by the folder path, for example cd Documents/outbound.
4. Type claude and press Enter.
5. Sign in when your browser opens, then come back to the terminal.

> What files are in this folder? Then create a file called call-prep.md with a checklist of 5 things to prepare before a discovery call with a VP of Sales.


## What to do if the install does not work

Most problems have a simple fix. Anthropic’s troubleshooting page matches each error message to a solution.

Once Claude Code runs, you can also ask it to check its own setup. Inside a session, it can run claude doctor, a check that reports install problems and suggested fixes in plain words.

- claude not found: open a new terminal window first. If it still fails, the install folder is not on your PATH. PATH is the list of places your computer looks for commands.
- A 403 error or "syntax error near unexpected token": your network blocked the download. Try another network or see the troubleshooting page.
- Sign-in refused: check that your Claude account is on a paid plan.

> Run claude doctor and explain the result to me in plain words. Tell me if anything needs fixing and how.


## Command

```
curl -fsSL https://claude.ai/install.sh | bash
```

## Sources

- [Claude Code advanced setup](https://code.claude.com/docs/en/setup)
- [Claude Code quickstart](https://code.claude.com/docs/en/quickstart)
- [Claude Code overview](https://code.claude.com/docs/en/overview)

## Questions

**Can I use WSL on Windows?** Yes. WSL is the Linux system built into Windows. Inside WSL, use the Mac and Linux command.

**Do I need Node.js to install Claude Code?** No. The native installer does not need Node.js. Only the npm install method needs Node.js 22 or later.

**Do I need admin rights to install Claude Code on Windows?** No. Run the install command from PowerShell or CMD as a normal user.

**How do I uninstall Claude Code?** For a native install on Mac or Linux, run rm -f ~/.local/bin/claude and rm -rf ~/.local/share/claude. For Homebrew, WinGet or npm, use their uninstall command.

**Can I use Claude Code without the terminal at all?** Yes. The Claude desktop app includes Claude Code in its Code tab, and the web version runs at claude.ai/code.


## Related

- [How to use Claude for lead generation](https://coldiq.com/university/claude/lead-gen-masterclass)

## Try ColdIQ free

ColdIQ gives new accounts up to 1,450 free credits as they get started, no credit card required.
One subscription covers 40+ B2B data providers for finding, enriching and verifying
contacts and companies, through the web app, the API or the MCP server for AI agents.

1. Create an account: https://coldiq.com/marketplace/sign-up?utm_source=ai-assistant&utm_medium=markdown&utm_content=university
2. Run a first search on your own market with the free credits.
3. Connect the MCP server to Claude, ChatGPT or Cursor: https://coldiq.com/mcp
