Skip to content

Outdated Claude Code CLI install instructions in warning/error messages #1634

@bjcoombs

Description

@bjcoombs

Problem

Several warning and error messages reference npm install -g @anthropic-ai/claude-code as the install method for Claude Code CLI. Claude Code now distributes as a native binary and the primary install method is via the install script or platform package managers.

Affected Locations

claude-task-master:

  • src/ai-providers/claude-code.js:88 - CLI detection warning
  • src/ai-providers/claude-code.js:150 - CLI initialization error
  • packages/tm-core/src/modules/loop/services/loop.service.ts:589 - Loop service error
  • docs/examples/claude-code-usage.md:63-65 - Documentation

ai-sdk-provider-claude-code (separate repo):

  • examples/README.md:12
  • examples/basic-usage.ts:61
  • examples/check-cli.ts:33,39

Current Message

Claude Code CLI not detected. Install it with: npm install -g @anthropic-ai/claude-code

Expected

Install instructions should reference the current primary install method and/or link to official documentation. The npm install method still works but is no longer the primary distribution channel.

Proposed Fix

Update messages to reference https://docs.anthropic.com/en/docs/claude-code/overview or the install script curl -fsSL https://claude.ai/install.sh | bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions