Cursor-agent 2026.04.16-2d20146: Cannot find module '@anysphere/file-service-darwin-x64' on Intel Mac

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Running agent on an Intel Mac (x86_64) fails immediately with:

Error: Cannot find module ‘@anysphere/file-service-darwin-x64’

The release 2026.04.16-2d20146 ships file_service.darwin-arm64.node but is missing file_service.darwin-x64.node. The bundled Node binary is x86_64 so it requires the x64 native module, which was not included.

Steps to Reproduce

  1. Install cursor-agent on an Intel Mac (x86_64)
  2. Update to version 2026.04.16-2d20146
  3. Run agent (or cursor-agent)
  4. Error fires immediately on startup: Cannot find module '@anysphere/file-service-darwin-x64'

Confirmed by inspecting the install directory:

  • Present: file_service.darwin-arm64.node (16MB)
  • Missing: file_service.darwin-x64.node
  • Bundled node binary: Mach-O 64-bit executable x86_64

Expected Behavior

agent starts normally. The release should bundle file_service.darwin-x64.node alongside the arm64 variant for Intel Mac users.

Workaround: rolled back symlink to previous version 2026.04.08-a41fba1.

Operating System

MacOS

Version Information

CLI Version: 2026.04.16-2d20146 (broken)
Rolled back to: 2026.04.08-a41fba1
macOS: Darwin 24.6.0 x86_64 (Intel Core i9-9900K)

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

Same here

Mac intel
Same here

same here, reproducible on 2 Intel Macs.

Hey @Randy_Olson – Thanks for the detailed report and the forensic inspection of the install directory – that made it very straightforward to confirm the issue.

We’ve flagged this with our CLI team so the fix can be included in the next release.

When will the next version be released?

Claude code fixed it for me :slight_smile:
Poor intel macs get no love these days :frowning:

Basically just manually install the missing npm package and add a reference to it

Here’s a prompt you can use (or do it yourself):


I’m getting this error when running the Cursor Agent CLI on an Intel Mac:

Error: Cannot find module ‘./file_service.darwin-x64.node’

The fix requires two edits to the webpack bundle at:
~/.local/share/cursor-agent/versions/*/8975.index.js

What’s wrong: The bundle ships file_service.darwin-arm64.node and has a working dlopen module handler for it, but the
x64 equivalent was omitted. The x64 code path always throws instead of loading the file.

Prerequisites: First download the missing native module:
cd ~/.local/share/cursor-agent/versions//
npm pack
@anysphere*/file-service-darwin-x64
tar -xzf anysphere-file-service-darwin-x64-*.tgz --strip-components=1 package/file_service.darwin-x64.node

Then patch 8975.index.js with two edits:

  1. After the arm64 dlopen handler, add an x64 one:
    • Find: “../file-service/file_service.darwin-arm64.node”:(e,t,n)=>{e=n.nmd(e);try{process.dlopen(e,n(“path”).join(__di
      rname,n.p,“file_service.darwin-arm64.node”))}catch(e){throw new Error(“node-loader:\n”+e)}}
    • Replace with same string + , + “../file-service/file_service.darwin-x64.node”:(e,t,n)=>{e=n.nmd(e);try{process.dlope
      n(e,n(“path”).join(__dirname,n.p,“file_service.darwin-x64.node”))}catch(e){throw new Error(“node-loader:\n”+e)}}
  2. Fix the x64 branch to use the module path instead of throwing:
    • Find: case"x64":d=r(o(__dirname,“file_service.darwin-x64.node”));try{c=n(Object(d?function(){var e=new Error(“Cannot
      find module ‘./file_service.darwin-x64.node’”);throw e.code=“MODULE_NOT_FOUND”,e}():function(){var e=new Error(“Cannot
      find module ‘@anysphere/file-service-darwin-x64’”);throw
      e.code=“MODULE_NOT_FOUND”,e}()))}catch(e){u=e}break;case"arm64":d=r(o(__dirname,“file_service.darwin-arm64.node”));
    • Replace with: case"x64":d=r(o(__dirname,“file_service.darwin-x64.node”));try{c=n(d?“../file-service/file_service.dar
      win-x64.node”:Object(function(){var e=new Error(“Cannot find module ‘@anysphere/file-service-darwin-x64’”);throw
      e.code=“MODULE_NOT_FOUND”,e}()))}catch(e){u=e}break;case"arm64":d=r(o(__dirname,“file_service.darwin-arm64.node”));

Please apply these two edits to fix the issue.

1 Like

that worked for me on Cursor IDE fist one shot didnt help much. But also i asked to run agent command till it finally starts and it worked

Hi, I have the same problem on a macbook pro m2, not intel.

EDIT : default install is
curl https://cursor.com/install -fsS | bash

while mac use zsh by default, doing so works for me :

curl https://cursor.com/install -fsS | zsh