claude-code - 💡(How to fix) Fix [BUG] spawn EPERM [1 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#48244Fetched 2026-04-15 06:29:08
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

Title: spawn EPERM error on Windows when starting local sessions in Claude Code desktop app The Claude Code desktop app fails to start any local session with spawn EPERM. The error appears immediately when clicking Local or selecting any local folder. The CLI itself works perfectly fine when launched directly from PowerShell. See spawn EPERM error immediately spawn EPERM error, session never starts. Title: spawn EPERM error on Windows when starting local sessions in Claude Code desktop app The Claude Code desktop app fails to start any local session with spawn EPERM. The error appears immediately when clicking Local or selecting any local folder. The CLI itself works perfectly fine when launched directly from PowerShell. See spawn EPERM error immediately spawn EPERM error, session never starts.

Error Messages/Logs

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?

Title: spawn EPERM error on Windows when starting local sessions in Claude Code desktop app Environment:

OS: Windows 10 (10.0.19045.6456) Claude Code desktop app version: 2.1.108 Claude CLI version: 2.1.108 (native install at C:\Users\admin.local\bin\claude.exe) Install method: Native (via irm https://claude.ai/install.ps1 | iex)

Description: The Claude Code desktop app fails to start any local session with spawn EPERM. The error appears immediately when clicking Local or selecting any local folder. The CLI itself works perfectly fine when launched directly from PowerShell. Steps to reproduce:

Install Claude Code desktop app on Windows 10 Open the app and click "New session" Select "Local" or any local folder See spawn EPERM error immediately

Expected behavior: Local session starts successfully. Actual behavior: spawn EPERM error, session never starts. Additional context:

CLI works fine in terminal: claude launches successfully as Opus 4.6 (1M context) · Claude Max SSH remote sessions also fail with Claude Code process exited with code 1 and Unauthorized: invalid or missing auth token Previously worked on an older version of the desktop app Tried: reinstalling, removing Store version, adding PATH entries, setting CLAUDE_CODE_BIN env var, SHELL and ComSpec env vars — none resolved the issue /doctor shows: Currently running: native (2.1.108), Stable version: 2.1.92 Downgrading to stable (2.1.92) may resolve — unable to test as install script doesn't accept --channel stable flag on Windows

What Should Happen?

Title: spawn EPERM error on Windows when starting local sessions in Claude Code desktop app Environment:

OS: Windows 10 (10.0.19045.6456) Claude Code desktop app version: 2.1.108 Claude CLI version: 2.1.108 (native install at C:\Users\admin.local\bin\claude.exe) Install method: Native (via irm https://claude.ai/install.ps1 | iex)

Description: The Claude Code desktop app fails to start any local session with spawn EPERM. The error appears immediately when clicking Local or selecting any local folder. The CLI itself works perfectly fine when launched directly from PowerShell. Steps to reproduce:

Install Claude Code desktop app on Windows 10 Open the app and click "New session" Select "Local" or any local folder See spawn EPERM error immediately

Expected behavior: Local session starts successfully. Actual behavior: spawn EPERM error, session never starts. Additional context:

CLI works fine in terminal: claude launches successfully as Opus 4.6 (1M context) · Claude Max SSH remote sessions also fail with Claude Code process exited with code 1 and Unauthorized: invalid or missing auth token Previously worked on an older version of the desktop app Tried: reinstalling, removing Store version, adding PATH entries, setting CLAUDE_CODE_BIN env var, SHELL and ComSpec env vars — none resolved the issue /doctor shows: Currently running: native (2.1.108), Stable version: 2.1.92 Downgrading to stable (2.1.92) may resolve — unable to test as install script doesn't accept --channel stable flag on Windows

Error Messages/Logs

Steps to Reproduce

just run and type anything

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.108

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

<img width="875" height="183" alt="Image" src="https://github.com/user-attachments/assets/50eedaae-4e95-4346-909b-6fa203fc76ca" />

extent analysis

TL;DR

Downgrade to the stable version (2.1.92) of the Claude Code desktop app to potentially resolve the spawn EPERM error on Windows.

Guidance

  • The error seems to be related to the current version (2.1.108) of the Claude Code desktop app, as the CLI works fine and the issue is reported as a regression.
  • Try to downgrade to the stable version (2.1.92) using an alternative installation method, as the current install script does not accept the --channel stable flag on Windows.
  • Verify that the CLI version matches the downgraded desktop app version to ensure consistency.
  • If downgrading is not possible, try to investigate further by checking the error logs or seeking additional support from the development team.

Example

No code snippet is provided as the issue seems to be related to the installation and versioning of the Claude Code desktop app.

Notes

The provided information suggests that downgrading to the stable version may resolve the issue, but this has not been tested due to installation script limitations. Additionally, the error messages/logs section is empty, which might be helpful in further troubleshooting.

Recommendation

Apply workaround: Downgrade to the stable version (2.1.92) of the Claude Code desktop app, as it may resolve the spawn EPERM error on Windows, and the current version is reported to have regressions.

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