This repository was archived by the owner on Dec 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Bug: Wrong package name prevents Claude Code integration #24
Copy link
Copy link
Open
Description
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-cliFix Needed
Desktop app needs to:
- Import correct package name:
@anthropic-ai/claude-cli→@anthropic-ai/claude-code - Look in correct path:
/usr/lib64/node_modules/→/usr/local/lib/node_modules/ - Or use Node.js module resolution to find globally installed packages
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels