Merge pull request #17797 from anthropics/docs/update-installation-instructions

docs: update installation instructions in README
This commit is contained in:
ant-kurt
2026-01-12 15:22:53 -08:00
committed by GitHub

View File

@@ -11,30 +11,37 @@ Claude Code is an agentic coding tool that lives in your terminal, understands y
<img src="./demo.gif" />
## Get started
> [!NOTE]
> Installation via npm is deprecated. Use one of the recommended methods below.
For more installation options, uninstall steps, and troubleshooting, see the [setup documentation](https://code.claude.com/docs/en/setup).
1. Install Claude Code:
**MacOS/Linux:**
```bash
curl -fsSL https://claude.ai/install.sh | bash
```
**MacOS/Linux (Recommended):**
```bash
curl -fsSL https://claude.ai/install.sh | bash
```
**Homebrew (MacOS):**
```bash
brew install --cask claude-code
```
**Homebrew (MacOS/Linux):**
```bash
brew install --cask claude-code
```
**Windows:**
```powershell
irm https://claude.ai/install.ps1 | iex
```
**Windows (Recommended):**
```powershell
irm https://claude.ai/install.ps1 | iex
```
**NPM:**
```bash
npm install -g @anthropic-ai/claude-code
```
**WinGet (Windows):**
```powershell
winget install Anthropic.ClaudeCode
```
NOTE: If installing with NPM, you also need to install [Node.js 18+](https://nodejs.org/en/download/)
**NPM (Deprecated):**
```bash
npm install -g @anthropic-ai/claude-code
```
2. Navigate to your project directory and run `claude`.