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

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.