claude-code - 💡(How to fix) Fix [DOCS] Wrong and deprecated npm install command shown on claude.ai/code

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  1. The package name @anthropic/claude-cli is incorrect — it does not exist on npm and returns a 404 error when run. This causes confusion for new users who follow the instructions on the website and get an immediate 404 error. npm error 404 Not Found - @anthropic/claude-cli
RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://claude.ai/code/disabled

Section/Topic

Installation / Getting Started

Current Documentation

npm install -g @anthropic/claude-cli

What's Wrong or Missing?

Two problems with the install command shown on claude.ai/code:

  1. The package name @anthropic/claude-cli is incorrect — it does not exist on npm and returns a 404 error when run.
  2. npm installation is deprecated per the official README at github.com/anthropics/claude-code.

This causes confusion for new users who follow the instructions on the website and get an immediate 404 error.

Suggested Improvement

Replace the npm command with the recommended install methods from the official README:

macOS / Linux (Recommended)

curl -fsSL https://claude.ai/install.sh | bash

macOS via Homebrew

brew install --cask claude-code

Windows (Recommended)

irm https://claude.ai/install.ps1 | iex

Windows via WinGet

winget install Anthropic.ClaudeCode

Impact

Medium - Makes feature difficult to understand

Additional Context

Verified on 2026-05-31. Running the displayed command produces:

npm error 404 Not Found - @anthropic/claude-cli

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Wrong and deprecated npm install command shown on claude.ai/code