claude-code - 💡(How to fix) Fix [BUG] Windows Server 2022 Standard [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#54262Fetched 2026-04-29 06:31:59
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

⎿ Error: Failed to finalize marketplace cache. Please manually delete the directory at

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

In the Windows Server 2022 Standard environment, when installing the plugin, there is no slash at the end of the user directory.

What Should Happen?

The correct file path should be: C:\Users\Administrator.claude\plugins\marketplaces\jarrodwatts-claude-hud

Error Messages/Logs

Steps to Reproduce

! echo "USERPROFILE=$USERPROFILE" ⎿  USERPROFILE=C:\Users\Administrator

! echo "home=$HOME" ⎿  home=/c/Users/Administrator

❯ /plugin marketplace add jarrodwatts/claude-hud ⎿ Error: Failed to finalize marketplace cache. Please manually delete the directory at C:\Users\Administrator.claude\plugins\marketplaces\claude-hud if it exists and try again.

 Technical details: EPERM: operation not permitted, rename 'C:\Users\Administrator.claude\plugins\marketplaces\jarrodwatts-claude-hud' ->
 'C:\Users\Administrator.claude\plugins\marketplaces\claude-hud'

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.112

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be resolved by ensuring the correct file path with a slash at the end of the user directory is used when installing the plugin.

Guidance

  • Verify that the USERPROFILE environment variable is correctly set and includes a trailing slash, as the error message indicates a missing slash in the path C:\Users\Administrator.claude\plugins\marketplaces\claude-hud.
  • Check the plugin installation script to see if it correctly handles the file path construction, potentially needing an update to append a slash after the user directory.
  • Manually try adding a slash to the USERPROFILE path when installing the plugin to see if it resolves the issue, as suggested by the error message.
  • Consider updating the plugin to handle cases where the user directory path does not include a trailing slash.

Example

No specific code example can be provided without knowing the exact plugin installation script, but ensuring the path is correctly formatted like C:\Users\Administrator\.claude\plugins\marketplaces\jarrodwatts-claude-hud is key.

Notes

The issue seems specific to the Windows environment and the interaction between the USERPROFILE variable and how the plugin constructs file paths. The solution might involve adjusting environment variables, the plugin's path handling, or both.

Recommendation

Apply workaround: Manually ensure the correct path with a trailing slash is used during plugin installation, as this directly addresses the error message's suggestion and may provide a quick resolution while a more permanent fix is investigated.

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