How to install it, step by step
Installation and first steps · lesson 4 of 11
Now let’s install it. Choose just one option, depending on your computer.
In the desktop app: you don’t install anything from the terminal and you don’t need Node.js: Claude Code is built into the app. The steps are in “Where can you use Claude Code?”.
How do I install it?
On Mac (or Linux), the recommended option: open the Terminal, copy the line and press Enter.
# Native installer (recommended)
curl -fsSL https://claude.ai/install.sh | bash
It downloads the installer from the official website and starts it.
What do curl and bash mean?
curl downloads things from the internet, and bash runs what was downloaded.
And on Windows?
Open PowerShell, copy the line and press Enter.
# Windows (PowerShell)
irm https://claude.ai/install.ps1 | iex
It does the same thing, in the PowerShell language: irm downloads, iex runs.
Is there another way?
It works via npm too, but only if you already have Node.js, version 22 or newer. If you don’t know what that is, skip it.
# Via npm (Node 22+)
npm install -g @anthropic-ai/claude-code
npm is a “store” of programs for programmers, and the command installs Claude Code from it.
How do I know it worked?
You’ll see a few lines about downloading, then a message that the installation is finished, and the command line again.
If the terminal asks you to, close and reopen the window. Then check with two commands, one at a time:
$ claude --version 2.1.0 (Claude Code) $ claude doctor Diagnostics └ Currently running: native (2.1.0) └ Auto-updates: enabled └ No problems found
claude --version shows the installed version (a few digits separated by dots): if you see a number, it’s installed.
claude doctor runs a full check-up, like a visit to the doctor, and tells you if something is wrong and what to do about it.
What about “command not found”?
Don’t worry: close the terminal, open it again, and try once more.
How do I check in the app?
In the desktop app: in a Local session in the Code tab, type
/status. The “Claude Code” row shows you the version.
In the terminal, you use the two commands from a moment ago. Try them now, one at a time.