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.
8 Comments
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.
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" />
i see the same thing as @liam1241
There is a
lastReleaseNotesSeenfield in the Claude configuration (~/.claude.json). That might be the source of information forclaude --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-codeinstallation that is being run by the same user, you can see this kind of mismatch. For example:and
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-globalto~/.local/share/npm-packagesbut forgot to update one of my terminal sessions to findclaudein 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.My situation was as @emcd described.
npm install -g @anthropic-ai/claude-code, claude then gave me a message about not being able to auto updateRecommended: Create a new user-writable npm prefixsteps. I did not pay much attention, and did not notice the comment sayingReplace ~/.bashrc with ~/.zshrcfor mac: https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#recommended-create-a-new-user-writable-npm-prefixDeleting claude from
/usr/local/bin, adding the user-writable npm path in~/.zshrc, and then runningnpm install -g @anthropic-ai/claude-coderesolved the issue for meLikely an issue with npm. See here: https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#auto-updater-permission-options
Closing out, feel free to re-open if you're still hitting this.
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.