claude-code - 💡(How to fix) Fix [BUG] Cowork: "Claude Code process exited with code 127" on macOS Intel, App Store Claude Desktop, native CLI 2.1.139

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…

Error Message

Error Messages/Logs

Just enter anything into cowork and I'm getting the code 127 error

Root Cause

/.local/share/claude/versions/2.1.139`

  • Plan: Pro
  • Feature affected: Cowork (Code tab unaffected because not tested; regular Claude chat works fine)

Fix Action

Fix / Workaround

  • #54274 (exit code 127, macOS Apple Silicon)
  • #46661 (exit code 126, missing com.apple.vm.networking entitlement, Apple Silicon)
  • #40283 (Cowork Dispatch not responding, same root cause as #46661)
  • #49485 (exit code 1, Apple M3)

Code Example

Something went wrong
Try sending your message again. If it keeps happening, share feedback so we can investigate.
Details
Claude Code process exited with code 127
You can restart the conversation from an earlier message.

---
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?

What's Wrong?

Every Cowork task in Claude Desktop fails immediately with "Something went wrong - Claude Code process exited with code 127" before any output is generated. Issue persists after extensive troubleshooting including full VM state reset.

Environment

  • OS: macOS (Intel, darwin-x64)
  • Claude Desktop: App Store version (sandboxed)
  • Claude Code CLI: 2.1.139 (native install)
  • Install path: `/Users/nathanielshanklin
<img width="1453" height="638" alt="Image" src="https://github.com/user-attachments/assets/6bb0b9a2-a105-40f2-b9dc-09148b230c83" />

/.local/share/claude/versions/2.1.139`

  • Plan: Pro
  • Feature affected: Cowork (Code tab unaffected because not tested; regular Claude chat works fine)

Steps to Reproduce

  1. Open Claude Desktop
  2. Click the Cowork tab
  3. Send any prompt (e.g., "Hi Cowork, let's see where we are this week")
  4. Task fails within ~1 second with exit code 127

Expected Behavior

Cowork task accepts the prompt, spawns the Claude Code binary inside the VM, and returns a response.

Actual Behavior

Something went wrong
Try sending your message again. If it keeps happening, share feedback so we can investigate.
Details
Claude Code process exited with code 127
You can restart the conversation from an earlier message.

Every task. Reproducible 100% of the time.

Troubleshooting Already Performed

  1. Ran claude doctor. Initial output flagged two installations (npm-global at /usr/local/bin/claude showing a suspicious claude.exe binary path on macOS, and a native install at ~/.local/bin/claude), plus an "Insufficient permissions for auto-updates" warning.

  2. Removed the conflicting npm install: sudo npm uninstall -g @anthropic-ai/claude-code. Confirmed 2 packages removed.

  3. Reinstalled fresh via native installer: claude install. Verified v2.1.139 installed at ~/.local/share/claude/versions/2.1.139.

  4. Fixed PATH: Added ~/.local/bin to ~/.bash_profile, sourced it.

  5. Created symlink for GUI app resolution: sudo ln -s ~/.local/bin/claude /usr/local/bin/claude.

  6. Verified clean terminal state: claude --version returns 2.1.139, claude doctor shows native install as active runner, auto-updates enabled, no permissions warnings.

  7. Cleared Cowork VM state: Deleted ~/Library/Application Support/Claude/vm_bundles, emptied Trash, rebooted Mac, relaunched Claude Desktop. VM rebuilt on next launch.

  8. Fully quit and relaunched Claude Desktop (Cmd+Q) multiple times across each step above.

Result: Cowork still exits with code 127 on every task. Terminal-side Claude Code is fully functional throughout.

Hypothesis

The sandboxed App Store version of Claude Desktop may not be resolving the claude binary inside its Cowork VM environment, regardless of host filesystem state. This is consistent with the pattern in #54274 and the entitlement-related root cause documented in #40283 and #46661 (though those report exit code 126 on Apple Silicon; this is exit code 127 on Intel).

Related Issues

  • #54274 (exit code 127, macOS Apple Silicon)
  • #46661 (exit code 126, missing com.apple.vm.networking entitlement, Apple Silicon)
  • #40283 (Cowork Dispatch not responding, same root cause as #46661)
  • #49485 (exit code 1, Apple M3)

Happy to provide additional logs, run any diagnostic commands, or share Console.app output if helpful.

What Should Happen?

I want Cowork to be able to work properly again

Error Messages/Logs

Steps to Reproduce

Just enter anything into cowork and I'm getting the code 127 error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.139

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

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

claude-code - 💡(How to fix) Fix [BUG] Cowork: "Claude Code process exited with code 127" on macOS Intel, App Store Claude Desktop, native CLI 2.1.139