[BUG] Claude Code crashes when it can't find Claude.md

Resolved 💬 3 comments Opened Jul 12, 2025 by WarrenWhitlock Closed Dec 10, 2025

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

  1. <!-- First step --> ask Claude Code to save a project MD
  2. <!-- Second step --> It looks for it in a directory other than where Claude is located
  3. <!-- 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. -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗