You need two things on your computer: Node.js and Claude Code itself. This takes about five minutes.
Step 1: Install Node.js
Node.js is the engine that runs Claude Code. You do not need to understand what it does. You just need it installed.
- Go to nodejs.org
- Download the LTS version (the green button)
- Run the installer. Accept all the defaults.
To verify it worked, open your terminal:
Type this and press Enter:
node --version
You should see a version number like v22.12.0. The exact number does not matter. If you see an error, close your terminal, reopen it, and try again. The installer sometimes needs a fresh terminal to take effect.
Step 2: Install Claude Code
In your terminal, type:
npm install -g @anthropic-ai/claude-code
This downloads Claude Code and makes it available everywhere on your machine. It takes 30-60 seconds.
If you get a “permission denied” error on Mac or Linux, the Node.js install may need fixing. The cleanest solution: visit nodejs.org, download the LTS installer again, and reinstall. Avoid using sudo with npm.
Step 3: Verify it works
Type:
claude
You will see Claude Code’s welcome screen: a dark terminal interface with an input prompt at the bottom. It will ask you to log in with your Anthropic account the first time. Follow the prompts in your browser to connect your account.
Troubleshooting
“command not found” after installing Node.js: Close your terminal completely and open a new one. If that does not work, restart your computer.
“npm is not recognized” on Windows: Make sure you checked “Add to PATH” during the Node.js installation. If not, uninstall Node.js and reinstall, checking that box.
Already have Node.js but it is old: Claude Code needs Node.js 18 or newer. Run node --version to check. If it is below 18, download the latest LTS from nodejs.org.