[BUG] Claude code HOME path
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] 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
When running claude code on a cluster with a non-standard home directory, I get this error:
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EACCES: permission denied, open '/cluster/home/CLAUDE.md'
at readFileSync (node:fs:442:20)
at file:///cluster/home/michaes/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:559:3
at G (file:///cluster/home/michaes/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:416:12506)
Expected Behavior
Is there a way to specify the search path/home path for claude to use?
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗