Skip to main content

Installation

2 min read

How to install Claude Code on your system


title: Installation description: How to install Claude Code on your system

System Requirements

Before installing Claude Code, ensure your system meets these requirements:

  • Node.js: Version 18.0 or higher
  • Operating System: macOS, Linux, or Windows (via WSL)
  • Terminal: A modern terminal emulator

Installation Methods

Using npm (Recommended)

The fastest way to install Claude Code is via npm:

Bash

Using Homebrew (macOS)

If you're on macOS and prefer Homebrew:

Bash

Using pnpm

For pnpm users:

Bash

Verify Installation

After installation, verify that Claude Code is properly installed:

Bash

You should see output like:

Text

Authentication

Before using Claude Code, you need to authenticate with your Anthropic account:

Bash

This will open a browser window where you can sign in with your Anthropic account. Once authenticated, you're ready to start using Claude Code!

First Run

To start your first Claude Code session:

Bash

Or start with a specific prompt:

Bash

Updating Claude Code

To update to the latest version:

Bash

Or with Homebrew:

Bash

Troubleshooting

Command Not Found

If you get a "command not found" error after installation, ensure your global npm bin directory is in your PATH:

Bash

Add this line to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make it permanent.

Permission Errors

If you encounter permission errors during installation, you may need to fix npm permissions:

Bash

Next Steps

Now that you have Claude Code installed, check out the Quick Start guide to learn the basics.

Generated with AI using Claude AI by Anthropic

Model: Claude Opus 4.5 · Generated: 2025-12-20 · Build: v1.21.0-75762dc

Edit this page on GitHub··

Discussion

0/2000

Comments are reviewed before being published