Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Bug: Wrong package name prevents Claude Code integration #24

@jpluto458

Description

@jpluto458

Claude Desktop cannot integrate with Claude Code - imports wrong package name

Problem

Claude Desktop cannot integrate with Claude Code due to a module not found error. The desktop app imports @anthropic-ai/claude-cli but the actual package is @anthropic-ai/claude-code.

Error

[ClaudeSDK] Failed to load SDK: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@anthropic-ai/claude-cli' imported from /usr/lib64/claude-desktop/app.asar/.vite/build/index.js

Root Cause

  • Claude Code installs to /usr/local/lib/node_modules/@anthropic-ai/claude-code
  • Desktop app looks for /usr/lib64/node_modules/@anthropic-ai/claude-cli
  • Both package name and path are incorrect

Environment

  • Claude Desktop: 0.10.38
  • Claude Code: 1.0.31
  • OS: Fedora Linux

Current Workaround

sudo mkdir -p /usr/lib64/node_modules/@anthropic-ai/
sudo ln -sf /usr/local/lib/node_modules/@anthropic-ai/claude-code /usr/lib64/node_modules/@anthropic-ai/claude-cli

Fix Needed

Desktop app needs to:

  1. Import correct package name: @anthropic-ai/claude-cli@anthropic-ai/claude-code
  2. Look in correct path: /usr/lib64/node_modules//usr/local/lib/node_modules/
  3. Or use Node.js module resolution to find globally installed packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions