claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Auto-Update stuck in Doom Loop

Open SJungleib opened this issue 6 months ago • 14 comments

✗ 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.

SJungleib avatar Jun 18 '25 14:06 SJungleib

sorry for the trouble. have you tried claude migrate-intaller this installs an alias, so you'll have to start a new shell afterwards.

wolffiex avatar Jun 23 '25 16:06 wolffiex

Same here, i'm stuck in doom loop.

  1. 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.
  2. I have tried to update, it says It have updated at .31 but when I check it's still .18
  3. I tried npm uninstall, claude doctor, claude migrate-installer, etc. Nothing works.
  4. 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:

  1. Run /init to create a CLAUDE.md file with instructions for Claude
  2. Run /terminal-setup to set up terminal integration
  3. Use Claude to help with file analysis, editing, bash commands and git
  4. 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."

m3nt0l avatar Jun 23 '25 18:06 m3nt0l

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

wolffiex avatar Jun 23 '25 19:06 wolffiex

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$

m3nt0l avatar Jun 23 '25 19:06 m3nt0l

sorry, typo npm i -g @anthropic-ai/claude-code@latest

wolffiex avatar Jun 23 '25 19:06 wolffiex

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.

m3nt0l avatar Jun 23 '25 20:06 m3nt0l

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

MRL-00 avatar Jun 23 '25 21:06 MRL-00

@m3nt0l you need to use the alias the migration installed or otherwise run the local installation

wolffiex avatar Jun 23 '25 21:06 wolffiex

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.

SJungleib avatar Jun 23 '25 21:06 SJungleib

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:

  1. IMMEDIATELY isolate user data
  2. Audit all accounts for cross-contamination
  3. Notify affected users of the breach
  4. Stop all Claude operations until this is fixed

This isn't a bug. This is a five-alarm fire.

SJungleib avatar Jun 24 '25 23:06 SJungleib

Problem solved after moving to another office with Wifi.

m3nt0l avatar Jun 25 '25 08:06 m3nt0l

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.

alap avatar Jun 25 '25 08:06 alap

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

I try to use /migrate-installer after npm install -g @anthropic-ai/claude-code but it failed to process just like below: Image

nowhereman1999 avatar Jun 25 '25 15:06 nowhereman1999

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

wolffiex avatar Jun 25 '25 17:06 wolffiex

Closing this out for now, please post new issues if you're stll having trouble with auto-updates

rboyce-ant avatar Aug 22 '25 18:08 rboyce-ant

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.

github-actions[bot] avatar Aug 31 '25 14:08 github-actions[bot]