[BUG] `claude` exits silently (code 0) when ripgrep/fzf not installed in a docker container

Resolved 💬 4 comments Opened Jan 6, 2026 by LZong-tw Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code exits immediately with exit code 0. No error message.

Debug output shows:

spawn-rx Failed to find executable anywhere in path +0ms
spawn-rx Failed to find executable anywhere in path +1ms
spawn-rx Failed to find executable anywhere in path +1ms
spawn-rx Failed to find executable anywhere in path +0ms

What Should Happen?

Claude Code should either:

  1. Start normally with degraded functionality, or
  2. Display a clear error message indicating missing dependencies

Error Messages/Logs

No, it didn't show any error messages/logs until I use debug mode.

Steps to Reproduce

  1. Start a Docker container without ripgrep, zsh and fzf installed
  2. docker exec -it <container> bash
  3. Install Claude Code via curl -fsSL https://claude.ai/install.sh | bash
  4. Run claude

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

Solution

Installing ripgrep, zsh and fzf resolves the issue:

apt-get install -y ripgrep fzf zsh

Suggested fix

  • Add dependency check on startup with clear error message
  • Or list required dependencies in documentation
  • Or make these dependencies optional with graceful fallback

View original on GitHub ↗

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