Claude update to 0.2.30 fails to install

Status Fixed / completed
Maintainer reply ✓ Yes — emcd
Activity 8 comments · opened Mar 4, 2025 · closed Apr 30, 2025
💡 Likely answer: A maintainer (emcd, contributor) responded on this thread — see the highlighted reply below.

every time I start claude, it says it has 'Update installed. Restart to apply' but restarting claude, terminal, and the macbook leads to the same outcome. It autoupdates each time and does not install.

View original on GitHub ↗

8 Comments

BarbellDwarf · 1 year ago

Having the same issue. I am running it in WSL and it is acting the same way that you describe. No matter what I do, reboot, restart, exit and reopen, it doesn't update.

liam1241 · 1 year ago

I'm having the same issue on MacOS. Something I've noticed: Claude Code reports it's version as 0.2.29 with "claude --version", while "npm ls -g @anthropic-ai/claude-code" reports 0.2.30 as being installed. I suspect this mismatch might be the source of the issue here.

<img width="1016" alt="Image" src="https://github.com/user-attachments/assets/fd48f1f4-2ad0-4454-b8a4-12136c540f71" />

vishalsachdev · 1 year ago

i see the same thing as @liam1241

emcd contributor · 1 year ago

There is a lastReleaseNotesSeen field in the Claude configuration (~/.claude.json). That might be the source of information for claude --version. I cannot speak to the wisdom of manually changing that to match the package version, but maybe that would help...?

Also, if you have more than one claude-code installation that is being run by the same user, you can see this kind of mismatch. For example:

$ npm ls -g @anthropic-ai/claude-code
/home/me/.local/share/npm-packages/lib
└── @anthropic-ai/claude-code@0.2.31

and

$ which claude
/home/me/.local/share/npm-packages/bin/claude

have the same prefix (~/.local/share/npm-packages). Having a different path prefix between the location of the library and the executable can be problematic. (Encountered the issue reported here when I switched from ~/.npm-global to ~/.local/share/npm-packages but forgot to update one of my terminal sessions to find claude in the new location.) Not saying this is the root cause for anyone else's problem, but throwing this out there as a quick sanity check.

jacob-grahn · 1 year ago

My situation was as @emcd described.

Deleting claude from /usr/local/bin, adding the user-writable npm path in ~/.zshrc, and then running npm install -g @anthropic-ai/claude-code resolved the issue for me

wolffiex collaborator · 1 year ago
bcherny collaborator · 1 year ago

Closing out, feel free to re-open if you're still hitting this.

github-actions[bot] · 1 year ago

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.