[BUG] claude code fails to upgrade automatically when installed with pnpm
Resolved 💬 4 comments Opened Nov 25, 2025 by zakony-ai Closed Jan 27, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Everytime there is an upgrade to @anthropic-ai/claude-code I have an error showing that upgrade failed.
I spuspect it is because it is trying to upgrade using npm -g and I have it installed via pnpm -g
What Should Happen?
Automatic upgrade shouldn fail!
Error Messages/Logs
Steps to Reproduce
pnpm install -g @anthropic-ai/claude-code
claude
# wait for new version to see error
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.53 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
terminal inside Zed
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗