[BUG] Claude Code crashes when it can't find Claude.md
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ x] Other: <!-- specify -->
- Claude CLI version: <!-- output of
claude --version--> - Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
- Terminal: <!-- e.g. iTerm2, Terminal App -->
Bug Description
<!-- A clear and concise description of the bug -->
Steps to Reproduce
- <!-- First step --> ask Claude Code to save a project MD
- <!-- Second step --> It looks for it in a directory other than where Claude is located
- <!-- And so on... --> It give this error:
{let Q=B?`${B}:
^
Error: EACCES: permission denied, open '/home/free-ebooks.net/CLAUDE.md'
at file:///home/ubuntu/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1954:1009
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async D (file:///home/ubuntu/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:17198)
Node.js v22.17.0
Expected Behavior
<!-- What you expected to happen --> Save Claude.md
Actual Behavior
<!-- What actually happened --> crash
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗