claude-code - 💡(How to fix) Fix computer-use input tools broken on macOS ARM (M3) - missing native module [1 comments, 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#46359Fetched 2026-04-11 06:22:22
View on GitHub
Comments
1
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1

Computer-use MCP input tools (left_click, type, key, double_click, computer_batch, etc.) all fail on macOS ARM (Apple M3) with:

Cannot find module '/home/runner/code/tmp/claude-cli-external-build-2216/node_modules/@ant/computer-use-input/prebuilds/computer-use-input.node'

The screenshot tool works fine. Only input tools are affected.

Error Message

The error path /home/runner/code/tmp/claude-cli-external-build-2216/ is a Linux CI build path, not a macOS path. The native prebuilt binary computer-use-input.node appears to only be compiled for Linux and is not included for darwin-arm64. 3. All input tools fail with the same missing module error

Root Cause

The error path /home/runner/code/tmp/claude-cli-external-build-2216/ is a Linux CI build path, not a macOS path. The native prebuilt binary computer-use-input.node appears to only be compiled for Linux and is not included for darwin-arm64.

Fix Action

Workaround

Used Python's Quartz framework (CGEventCreateMouseEvent, CGEventCreateKeyboardEvent) to simulate mouse/keyboard input as a workaround, but this is very clunky.

Code Example

Cannot find module '/home/runner/code/tmp/claude-cli-external-build-2216/node_modules/@ant/computer-use-input/prebuilds/computer-use-input.node'
RAW_BUFFERClick to expand / collapse

Description

Computer-use MCP input tools (left_click, type, key, double_click, computer_batch, etc.) all fail on macOS ARM (Apple M3) with:

Cannot find module '/home/runner/code/tmp/claude-cli-external-build-2216/node_modules/@ant/computer-use-input/prebuilds/computer-use-input.node'

The screenshot tool works fine. Only input tools are affected.

Environment

  • Claude Code version: 2.1.100 (also broken on 2.1.89)
  • Platform: macOS Sequoia 15.7.4 (Darwin 24.6.0)
  • Chip: Apple M3 Pro (ARM64)
  • Install method: npm global (/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/)

Root Cause

The error path /home/runner/code/tmp/claude-cli-external-build-2216/ is a Linux CI build path, not a macOS path. The native prebuilt binary computer-use-input.node appears to only be compiled for Linux and is not included for darwin-arm64.

Steps to Reproduce

  1. Install Claude Code on macOS ARM (M3/M4)
  2. Use computer-use MCP: request_access, then screenshot (works), then left_click (fails)
  3. All input tools fail with the same missing module error

Expected Behavior

Input tools should work on macOS ARM, same as screenshot does.

Workaround

Used Python's Quartz framework (CGEventCreateMouseEvent, CGEventCreateKeyboardEvent) to simulate mouse/keyboard input as a workaround, but this is very clunky.

extent analysis

TL;DR

The most likely fix is to compile or obtain a darwin-arm64 compatible prebuilt binary for the computer-use-input.node module.

Guidance

  • Verify that the issue is indeed caused by the missing darwin-arm64 prebuilt binary by checking the node_modules/@ant/computer-use-input/prebuilds directory for available binaries.
  • Consider compiling the computer-use-input.node module from source for the darwin-arm64 platform, if possible.
  • As a temporary workaround, use the existing Python Quartz framework workaround, despite its clunkiness, until a proper fix is available.
  • Investigate whether the @ant/computer-use-input package maintainers can provide a prebuilt binary for darwin-arm64 or offer guidance on compiling it from source.

Example

No code example is provided, as the issue does not clearly imply a specific code change.

Notes

The provided workaround using Python's Quartz framework is clunky and may not be ideal, but it can serve as a temporary solution until a proper fix is available.

Recommendation

Apply the workaround using Python's Quartz framework until a darwin-arm64 compatible prebuilt binary for the computer-use-input.node module is available, as there is no clear indication of an existing fixed version that can be upgraded to.

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