[BUG] Auto-update failed error persists after manual update
Description
The CLI continuously displays "✗ Auto-update failed · Try claude doctor or npm i -g
@anthropic-ai/claude-code" at the bottom of the terminal, even after successfully updating to the latest
version.
Steps to Reproduce
- Install/update Claude Code: npm i -g @anthropic-ai/claude-code@latest
- Clear npm cache: npm cache clean --force
- Reinstall: npm i -g @anthropic-ai/claude-code@latest
- Run claude doctor
- The auto-update error message still appears at the bottom of the CLI
Expected Behavior
After successfully updating to the latest version, the auto-update error message should disappear.
Actual Behavior
The error message "✗ Auto-update failed" persists in the CLI interface despite successful manual update.
Environment
- Claude Code Version: 1.0.69
- Installation Method: npm-global
- Node Path: C:\Program Files\nodejs\node.exe
- CLI Path: C:\Users\madma\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\cli.js
- Auto-updates enabled: true
- Update permissions: Yes
- OS: Windows (PowerShell)
Additional Context
- claude doctor shows all diagnostics as normal
- Manual update completes successfully with "changed 2 packages"
- The error appears to be a UI/display issue rather than an actual update failure
Logs
> npm i -g @anthropic-ai/claude-code@latest
changed 2 packages in 11s
> claude --version
1.0.69 (Claude Code)
> claude doctor
Diagnostics
└ Currently running: npm-global (1.0.69)
└ Path: C:\Program Files\nodejs\node.exe
└ Auto-updates enabled: true
└ Update permissions: Yes
7 Comments
/ Model │
│ Switch between Claude models. Applies to this session and future Claude Code sessions. For custom model │
│ names, specify with --model. │
│ │
│ ❯ 1. Default (recommended) Opus 4 for up to 50% of usage limits, then use Sonnet 4✔ │
│ 2. Opus Opus 4 for complex tasks · Reaches usage limits faster │
│ 3. Sonnet Sonnet 4 for daily use
still no Opus 4.1 for select
Found 3 possible duplicate issues:
If your issue is a duplicate, please close it and 👍 the existing issue instead.
<sub>This issue will be automatically closed as a duplicate in 3 days if there are no additional comments. To prevent auto-closure, please 👎 this comment.</sub>
🤖 Generated with Claude Code
I had the same problem; the solution shared here worked for me: https://github.com/ruvnet/claude-flow/issues/202
Specifically, uninstalling the npm-installed claude:
and reinstalling with
It can be updated using the following command:
Probably related https://github.com/anthropics/claude-code/issues/1550
I fix this bug by : sudo rm -fr /data/home/yongbaowang/.nvm/versions/node/v21.7.3/lib/node_modules/@anthropic-ai/.claude-code-dQbT2ys8
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.