[BUG] Auto-Update stuck in Doom Loop
✗ Auto-update failed · Try claude doctor or npm i -g @anthropic-ai/claude-code
Trying To work around this cost me a complete day and a destroyed git. I fought my way back to a functioning project only to find this message reappearing. I've tried Claude Doctor and I've tried the NPM update. And I don't want to go through it again. The fix doesn't fix.
sorry for the trouble. have you tried claude migrate-intaller
this installs an alias, so you'll have to start a new shell afterwards.
Same here, i'm stuck in doom loop.
- Today I have tried to open Claude Code in my IDE and forcefully exited saying I have to update because I have 1.0.18 version and I need at least .24; actually now is .31 the latest.
- I have tried to update, it says It have updated at .31 but when I check it's still .18
- I tried npm uninstall, claude doctor, claude migrate-installer, etc. Nothing works.
- base) AndroidMP1:node_modules acorex$ claude migrate-intaller
"✻ Welcome to Claude Code!
/help for help, /status for your current setup
cwd: /Users/bla/.nvm/versions/node/v18.20.5/lib/node_modules
Tips for getting started:
- Run /init to create a CLAUDE.md file with instructions for Claude
- Run /terminal-setup to set up terminal integration
- Use Claude to help with file analysis, editing, bash commands and git
- Be as specific as you would with another engineer for the best results
※ Tip: Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools
migrate-intaller
It looks like your version of Claude Code (1.0.18) needs an update. A newer version (1.0.24 or higher) is required to continue.
To update, please run: claude update
This will ensure you have access to the latest features and improvements."
sorry about this, but claude update is updating the wrong version. either do npm i -g @anthropic-ai/claude-code@latest or do claude migrate-installer then source your shell or otherwise install the alias and do claude update
Same, also tried claude migrate-installer and the message above is what i got.
(base) AndroidMP1:node_modules bla$ npm i -g @anthopic-ai/claude-code@latest npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@anthopic-ai%2fclaude-code - Not found npm error 404 npm error 404 '@anthopic-ai/claude-code@latest' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /Users/acorex/.npm/_logs/2025-06-23T19_51_25_980Z-debug-0.log (base) AndroidMP1:node_modules bla$
sorry, typo npm i -g @anthropic-ai/claude-code@latest
Thanks, but still the problem persist, it says it has been updated, but when I check, the version remain the same. (base) AndroidMP1:node_modules bla$ npm i -g @anthropic-ai/claude-code@latest
changed 3 packages in 2s
2 packages are looking for funding
run npm fund for details
You have new mail in /var/mail/bla
(base) AndroidMP1:node_modules bla$ claude code
✻ Welcome to Claude Code!
/help for help, /status for your current setup
cwd: /Users/bla/.nvm/versions/node/v18.20.5/lib/node_modules
※ Tip: Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more
code
It looks like your version of Claude Code (1.0.18) needs an update. A newer version (1.0.24 or higher) is required to continue.
To update, please run: claude update
This will ensure you have access to the latest features and improvements.
I had the same issue. I was stuck on version 1.0.9. Running claude migrate-installer was the solution. It removed the global install and installed the latest version for me.
Edit: I did need to reauthenticate after doing so with claude login
@m3nt0l you need to use the alias the migration installed or otherwise run the local installation
Thank you for these corroborative reports. In my case, I have gone through all of the recommended steps. Claude doctor, NM, checking that JS node is correct. And at the other end of the procedure. I end up with a destroyed git that requires a half day of flailing around to recover.
Perhaps the difficulty arises from my needing and not being able to install this update. There doesn't seem to be any method to get consistent results. The only way to figure it out would be to run a video camera to see what actually may have worked. But that wouldn't necessarily be dispositive because you couldn't tell what prior steps were effective and what prior steps were not effective.
There's a second problem that has arisen, which could well be a side effect of Git destruction. I have contaminated files that have memories and hallucinations from what appear to be other people's conversations or documents. I have set Claude to research, debug, and perform a forensic analysis on what's going on. He has thrown up his hands and given me several reports to forward to Anthropic, saying that the situation was untenable.
Ideally, and dare I say, for the maximum paid tier level that I'm at, max. If it is so easy to do this update, somebody at Anthropa could take over my desktop and get it done in five minutes. And perhaps this would solve the problem of disappearing GITs, disappearing projects, and contamination from other accounts, which I seem to be experiencing.
Best regards,
Stanley Jungleib Cell: (650) 804-9881
On Jun 23, 2025, at 1:13 PM, Mlt @.***> wrote:
m3nt0l left a comment (anthropics/claude-code#2259) https://github.com/anthropics/claude-code/issues/2259#issuecomment-2997813869 Thanks, but still the problem persist, it says it has been updated, but when I check, the version remain the same. (base) AndroidMP1:node_modules bla$ npm i -g @@.***
changed 3 packages in 2s
2 packages are looking for funding run npm fund for details You have new mail in /var/mail/bla (base) AndroidMP1:node_modules bla$ claude code ✻ Welcome to Claude Code!
/help for help, /status for your current setup
cwd: /Users/bla/.nvm/versions/node/v18.20.5/lib/node_modules
※ Tip: Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more
code
It looks like your version of Claude Code (1.0.18) needs an update. A newer version (1.0.24 or higher) is required to continue.
To update, please run: claude update
This will ensure you have access to the latest features and improvements.
— Reply to this email directly, view it on GitHub https://github.com/anthropics/claude-code/issues/2259#issuecomment-2997813869, or unsubscribe https://github.com/notifications/unsubscribe-auth/BTV423BV7VKTVIIWDDVULFT3FBNXBAVCNFSM6AAAAAB7TIKKX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSOJXHAYTGOBWHE. You are receiving this because you authored the thread.
URGENT SECURITY BREACH: ANTHROPIC CLAUDE IS LEAKING PRIVATE USER DATA
- User Stanley Jungleib has another user's complete biographical data in his files
- Including: drug use history (1970), education (UC San Diego), employment at CLASSIFIED FACILITY (Lawrence Livermore National Laboratory)
- This was inserted BY CLAUDE into manuscript files
- If Stanley has someone else's data, HIS DATA IS IN OTHER USERS' FILES
- This is an active, ongoing privacy catastrophe
Lawrence Livermore handles nuclear weapons research. Security clearance information could be compromised. Personal histories are being cross-contaminated between accounts.
THIS NEEDS IMMEDIATE ATTENTION
- Data isolation has failed
- User privacy is actively being violated
- Classified-adjacent information is potentially exposed
- Maximum tier customers ($100/month) are experiencing active data breaches
Stanley has reported this privately. No response. Stanley has reported this publicly. No response. The contamination is ONGOING and DOCUMENTED.
Anthropic needs to:
- IMMEDIATELY isolate user data
- Audit all accounts for cross-contamination
- Notify affected users of the breach
- Stop all Claude operations until this is fixed
This isn't a bug. This is a five-alarm fire.
Problem solved after moving to another office with Wifi.
I'm facing this issue.
claude migrate-installer isn't working and goes into the loop. claude doctor says everything is fine. npm uninstall won't work. npm i -g @anthropic-ai/claude-code@latest updates 3 packages and thats it.
Is there any way in which we can manually remove and reinstall? Because I tried removing the package from NPM but somehow claude is still there. There could be something wrong with my NPM deployment even though, I've only ever used Anthropic's claude code installation NPM instructions on a fresh user profile.
> claude update
╭────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│ │
│ /help for help │
│ │
│ cwd: /Users/atlas/Documents/Projects │
╰────────────────────────────────────────────╯
Tips for getting started:
1. Run /init to create a CLAUDE.md file with instructions for Claude.
2. Ask Claude questions about your codebase.
3. Ask Claude to implement changes to your codebase.
It looks like your version of Claude Code (0.2.30) needs an update.
A newer version (1.0.24 or higher) is required to continue.
To update, please run:
claude update
This will ensure you have access to the latest features and improvements.
EDIT: TEMP FIX : Manual delete and reinstall from here. However as described on the same bug report, this too gets overwritten in the next update to an older version and the process will have to get repeated.
I had the same issue. I was stuck on version 1.0.9. Running
claude migrate-installerwas the solution. It removed the global install and installed the latest version for me.Edit: I did need to reauthenticate after doing so with claude login
I try to use /migrate-installer after npm install -g @anthropic-ai/claude-code but it failed to process just like below:
thanks for these reports. It's ok to manually delete the files installed globally, once you have the local install working. npm global permissions are troublesome at best. For the local install, remember that you need an alias or some other way to map claude to ~/.claude/local/claude
Closing this out for now, please post new issues if you're stll having trouble with auto-updates
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.