Claude Code cant run because it cant auto-update
Resolved 💬 5 comments Opened Mar 3, 2025 by nhumrich Closed Mar 7, 2025
Upon running claude code, I get a warning that it cant auto-update. This looks like its supposed to start an interactive session, but instead it just crashes and I cant do anything. I cant even run claude /config without it crashing with the error. How do I supress this check/warning?
Note: I did "not" press anything on the screenshot, the program just exited.
I do not want claude to auto-update itself because I installed via my package manager, which should keep it up to date itself.
terminal copy of the screenshot:
> claude
Checking npm permissions…
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (node:internal/stream_base_commons:150:3)
at Socket._writeGeneric (node:net:971:11)
at Socket._write (node:net:983:8)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
at Writable.write (node:internal/streams/writable:508:10)
at n6.sendToShell (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.mjs:343:423)
at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.mjs:340:1714
at new Promise (<anonymous>) {
errno: -32,
code: 'EPIPE',
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Enable automatic updates? │
│ │
│ Claude Code can't update itself because it doesn't have sufficient permissions. │
│ │
│ Please visit our troubleshooting guide (https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#auto-updater-permission-option) to │
│ resolve resolve permission issues and get the latest features and improvements │
│ │
│ Press Enter to continue… │
│ │
│ Current npm prefix: /usr │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
---
claude -v shows: 0.2.29 (Claude Code)
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗