claude-code - 💡(How to fix) Fix [Bug] EEXIST: Plugin directory creation fails when directory already exists [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#48427Fetched 2026-04-16 07:00:26
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Failed to run: EEXIST: file already exists, mkdir 'C:\Users\PC.claude\plugins\data\codex-openai-codex'

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 2.1.109
  • Feedback ID: eee171ca-034a-41e2-aa80-4fc06e7eacb7

Errors

[]

extent analysis

TL;DR

The issue can likely be resolved by removing the existing directory or file that is causing the "file already exists" error.

Guidance

  • Check the directory C:\Users\PC\.claude\plugins\data\ for the existence of a file or directory named codex-openai-codex and remove it if necessary.
  • Verify that the program has the necessary permissions to create the directory.
  • Consider adding error handling to the code to handle the case where the directory already exists.
  • If the issue persists, try running the program in a different terminal or environment to rule out any platform-specific issues.

Example

No code snippet is provided as the issue does not contain any relevant code.

Notes

The issue seems to be related to a file system error, and the solution should be straightforward. However, without more information about the program or the code that is trying to create the directory, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: remove the existing directory or file that is causing the error, as it is a simple and effective solution to the problem.

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