[BUG] cli.js is now in claude-code folder but sdk.mjs is looking for entrypoints
Status Fixed / completed
Maintainer reply ✓ Yes — ashwin-ant
Activity 4 comments · opened Aug 30, 2025 · closed Sep 1, 2025
💡 Likely answer: A maintainer (ashwin-ant, collaborator)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [* ] Anthropic API
- Claude CLI version: 1.0.98 (Claude Code)
- Operating System: Fedora 42
- Zed Agent Panel
Bug Description
cli.js is now in claude-code folder but sdk.mjs is looking for entrypoints
This results in error when another claude-code is called by other npm packages,
"Claude Code executable not found at /home/<username>/node_modules/@anthropic-ai/entrypoints/cli.js. Is options.pathToClaudeCodeExecutable set?"
Steps to Reproduce
- Install @anthropic-ai/claude-code
- Install @zed-industries/claude-code-acp
- Configure Zed as detailed in this comment.
- Test the claude-code via Zed claude-code thread.
Expected Behavior
claude code cli should be found automatically in the right folder.
Actual Behavior
claude code cli is being searched in wrong folder.
Additional Context
Though this issue is noted in Zed, it likely affects other applications which rely upon claude-code npm package.
4 Comments
how to fix this? task-master is not working =\
node_modules/@zed-industries/claude-code-acp/node_modules/@anthropic-ai/claude-code/sdk.mjs on Line 6515
Change
return join(dirname, "entrypoints", "cli.js");to
return join(dirname, "claude-code", "cli.js");Fixed in 1.0.100!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.