claude-code - 💡(How to fix) Fix Update banner shows winget command inside WSL where winget is unavailable [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50815Fetched 2026-04-20 12:12:17
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Describe the bug Claude Code CLI v2.1.83 running inside WSL (Ubuntu) shows the status bar message:

Update available\! Run: winget upgrade Anthropic.ClaudeCode

But winget is a Windows-only tool and is not available inside WSL. The CLI should detect it is running under WSL and suggest npm update -g @anthropic-ai/claude-code instead.

Environment

  • Claude Code v2.1.83
  • WSL2 Ubuntu on Windows 11
  • Installed via npm

extent analysis

TL;DR

The Claude Code CLI should detect it is running under WSL and suggest using npm update -g @anthropic-ai/claude-code instead of winget for updates.

Guidance

  • The issue is likely caused by the CLI not properly detecting the WSL environment and defaulting to the Windows-specific winget update command.
  • To verify the issue, run the Claude Code CLI inside WSL and check the status bar message for the incorrect winget update suggestion.
  • The CLI should be modified to detect the WSL environment and suggest the correct npm update command.
  • A potential workaround could be to manually run npm update -g @anthropic-ai/claude-code to update the CLI, but this does not address the root cause of the issue.

Example

No code snippet is provided as the issue does not require a code-level fix, but rather a modification to the CLI's update detection logic.

Notes

This issue is specific to the Claude Code CLI running inside WSL and may not apply to other environments or versions of the CLI.

Recommendation

Apply workaround: manually run npm update -g @anthropic-ai/claude-code to update the CLI, as the correct detection and suggestion of the update command is not currently implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING