mirror of
https://github.com/anthropics/claude-code.git
synced 2026-01-30 04:02:03 +00:00
Merge pull request #17797 from anthropics/docs/update-installation-instructions
docs: update installation instructions in README
This commit is contained in:
41
README.md
41
README.md
@@ -11,30 +11,37 @@ Claude Code is an agentic coding tool that lives in your terminal, understands y
|
|||||||
<img src="./demo.gif" />
|
<img src="./demo.gif" />
|
||||||
|
|
||||||
## Get started
|
## 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:
|
1. Install Claude Code:
|
||||||
|
|
||||||
**MacOS/Linux:**
|
**MacOS/Linux (Recommended):**
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://claude.ai/install.sh | bash
|
curl -fsSL https://claude.ai/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
**Homebrew (MacOS):**
|
**Homebrew (MacOS/Linux):**
|
||||||
```bash
|
```bash
|
||||||
brew install --cask claude-code
|
brew install --cask claude-code
|
||||||
```
|
```
|
||||||
|
|
||||||
**Windows:**
|
**Windows (Recommended):**
|
||||||
```powershell
|
```powershell
|
||||||
irm https://claude.ai/install.ps1 | iex
|
irm https://claude.ai/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
**NPM:**
|
**WinGet (Windows):**
|
||||||
```bash
|
```powershell
|
||||||
npm install -g @anthropic-ai/claude-code
|
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`.
|
2. Navigate to your project directory and run `claude`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user