[BUG] Installation fails with `ERR_CHILD_PROCESS_STDIO_MAXBUFFER` during ripgrep step on Linux
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?
Title: Installation fails with ERR_CHILD_PROCESS_STDIO_MAXBUFFER
during ripgrep step on Linux
Description:
Hi,
Claude CLI had been working fine for weeks, but suddenly it stopped
working and now the installation/update process fails on my Linux
machine. The error appears during the ripgrep step while the native
installer is being downloaded.
Relevant part of the logs:
2025-11-20T15:44:44.726Z [DEBUG] rg error (signal=undefined, code=ERR_CHILD_PROCESS_STDIO_MAXBUFFER, stderr: ), 171510 results
2025-11-20T15:44:44.726Z [ERROR] RangeError: Error
at <anonymous> (unknown)
at onData (node:child_process:153:110)
at emit (node:events:95:22)
at addChunk (internal:streams/readable:265:47)
at readableAddChunkPushByteMode (internal:streams/readable:243:18)
at handleNumberResult (internal:streams/native-readable:69:18)
at <anonymous> (internal:streams/native-readable:43:68)
at processTicksAndRejections (unknown:7:39)
Earlier in the logs I also see:
[ERROR] Failed to save config with lock: Error: ENOENT: no such file or directory, lstat '/home/dlopez/.claude.json'
I have also tried fully uninstalling Claude --- removing the binary
and deleting all configuration directories (~/.claude/ and~/.claude.json) --- and reinstalling again using:
curl -fsSL https://claude.ai/install.sh | bash
...but the problem persists.
Environment
- OS: Linux
- Claude CLI previously working, now suddenly failing
Steps to reproduce
- Run
claude installor start Claude Code - The installer begins downloading the native installer
- Ripgrep step runs and crashes with the above error
Expected behavior
The installation should complete normally without overflowing Node's
stdio maxBuffer.
Additional context
The logs show ripgrep producing 171,510 results, which may be
causing the buffer overflow. This never happened before, so something
may have changed in the installer or in how paths are scanned. Even
after a full uninstall and reinstall, the issue continues.
Let me know if you need more logs or want me to run a debug version.
What Should Happen?
finish installation without errors
Error Messages/Logs
2025-11-20T15:44:44.726Z [DEBUG] rg error (signal=undefined, code=ERR_CHILD_PROCESS_STDIO_MAXBUFFER, stderr: ), 171510 results
2025-11-20T15:44:44.726Z [ERROR] RangeError: Error
at <anonymous> (unknown)
at onData (node:child_process:153:110)
at emit (node:events:95:22)
at addChunk (internal:streams/readable:265:47)
at readableAddChunkPushByteMode (internal:streams/readable:243:18)
at handleNumberResult (internal:streams/native-readable:69:18)
at <anonymous> (internal:streams/native-readable:43:68)
at processTicksAndRejections (unknown:7:39)
Steps to Reproduce
curl -fsSL https://claude.ai/install.sh | bash
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.47
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗