Install Claude Code
How to install and configure Claude Code
π¦ Install Claude Code
System Requirements
- Operating System: Windows 10+, macOS 12+, Linux (Ubuntu 20.04+)
- Node.js 18 or higher
- Git (recommended)
Step 1: Install Node.js
If you haven't installed Node.js yet, install it first:
# Method 1: Download installer from official website (recommended)
# Visit https://nodejs.org and download the LTS version, then double-click to install
# Method 2: Use winget to install
winget install OpenJS.NodeJS.LTS
# Verify after installation
node --version
npm --version# Install using Homebrew (recommended)
brew install node@22
# Or download from official website: https://nodejs.org
# Verify installation
node --version
npm --version# Ubuntu / Debian
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
# Verify installation
node --version
npm --versionStep 2: Install Claude Code
npm install -g @anthropic-ai/claude-codeπ‘ Windows users: If you encounter permission issues, run the terminal as administrator. macOS/Linux users can add sudo before the command.
Verify after installation:
claude --version