claude-code - 💡(How to fix) Fix [DOCS] Incorrect npm package in code block [1 participants]

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…
GitHub stats
anthropics/claude-code#53271Fetched 2026-04-26 05:19:59
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Root Cause

Because npm org/user @anthropic does not exist, but @anthropic-ai does! Maybe the former is older or deprecated?

Code Example

npm install -g @anthropic/claude-cli

---

ERR_PNPM_FETCH_404GET https://registry.npmjs.org/@anthropic%2Fclaude-cli: Not Found - 404

...

@anthropic/claude-cli is not in the npm registry ...

---

npm install -g @anthropic-ai/claude-cli
RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://claude.ai/code/disabled

Section/Topic

On the card titled "Terminal (Original)"

Current Documentation

npm install -g @anthropic/claude-cli

What's Wrong or Missing?

Running the command as given:


 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/@anthropic%2Fclaude-cli: Not Found - 404

...

@anthropic/claude-cli is not in the npm registry ...

Because npm org/user @anthropic does not exist, but @anthropic-ai does! Maybe the former is older or deprecated?

Suggested Improvement

npm install -g @anthropic-ai/claude-cli

Note the corrected npm org/user

Impact

High - Prevents users from using a feature

Additional Context

<img width="1210" height="701" alt="Image" src="https://github.com/user-attachments/assets/8996dd6b-6bd5-4a72-a741-777cbc2e0904" />

extent analysis

TL;DR

Update the documentation to use the correct npm organization @anthropic-ai instead of @anthropic to fix the installation issue.

Guidance

  • Verify the existence of the @anthropic-ai organization and the claude-cli package in the npm registry to ensure the suggested improvement is accurate.
  • Update the documentation to reflect the correct installation command: npm install -g @anthropic-ai/claude-cli.
  • Test the updated installation command to confirm it resolves the ERR_PNPM_FETCH_404 error.
  • Consider adding a note to the documentation about the deprecated @anthropic organization to avoid confusion.

Example

npm install -g @anthropic-ai/claude-cli

Notes

The suggested improvement assumes that the @anthropic-ai organization is the correct replacement for the deprecated @anthropic organization. If this is not the case, further investigation may be necessary to determine the correct organization and package names.

Recommendation

Apply the workaround by updating the documentation to use the correct npm organization @anthropic-ai. This should resolve the installation issue and allow users to access the feature.

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] Incorrect npm package in code block [1 participants]