[DOCS] Wrong and deprecated npm install command shown on claude.ai/code

Resolved 💬 1 comment Opened May 31, 2026 by arjunadhikary Closed Jul 4, 2026

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

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗