/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589
throw new Error(‘node-loader:\n’ + error);
^
Error: node-loader:
Error: dlopen(/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node, 0x0001): tried: ‘/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node’ (no such file), ‘/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’))
at ../../node_modules/.pnpm/@[email protected]/node_modules/@lydell/node-pty-darwin-arm64/pty.node (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589:9)
at webpack_require (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/unixTerminal.js (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9918:11)
at webpack_require (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/index.js (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9664:21)
at webpack_require (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ./src/bridge/bridge.ts (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:386230:16)
at webpack_require (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at /Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:432240:75
at webpack_require.a (/Users/johanvargas/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435698:13)
Node.js v24.5.0 (not the one that is used system wide)
my machine:
node version v22.17.0
Darwin MacBook-Pro-151.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Dec 8 02:35:53 PST 2025; root:xnu-11417.140.69.705.5~1/RELEASE_X86_64 x86_64
2.3 GHz 8-Core Intel Core i9
Steps to Reproduce
I was working with the cli, exited and trying to start a new agent later on encountered the error.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Was working fine until I tried to start a new agent as I normally do. I tried to delete ./local/share/cursor-agent and reinstall in both bash and zsh with the same error outcome.
the curl downloads the darwin/x64/ version successfully.
Hey, thanks for the report. I can see the issue: the cursor-agent installer is downloading the ARM64 version of pty.node on your Intel Mac (x86_64), which causes an architecture mismatch.
This is a bug in the latest installer build (2026.01.02-80e4d9b). I’ll pass this to the team so we can fix it ASAP.
# tom @ MacBook-Pro in ~ [16:53:48]
$ cursor-agent
/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589
throw new Error('node-loader:\n' + error);
^
Error: node-loader:
Error: dlopen(/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node, 0x0001): tried: '/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node' (no such file), '/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
at ../../node_modules/.pnpm/@[email protected]/node_modules/@lydell/node-pty-darwin-arm64/pty.node (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589:9)
at __webpack_require__ (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/unixTerminal.js (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9918:11)
at __webpack_require__ (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/index.js (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9664:21)
at __webpack_require__ (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ./src/bridge/bridge.ts (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:386230:16)
at __webpack_require__ (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at /Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:432240:75
at __webpack_require__.a (/Users/tom/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435698:13)
Node.js v24.5.0
(base)
# tom @ MacBook-Pro in ~ [17:06:16] C:1
$ uname -m
x86_64
(base)
# tom @ MacBook-Pro in ~ [17:07:05]
$ arch
i386
(base)
# tom @ MacBook-Pro in ~ [17:07:09]
$
I have the same problem. I mistakenly updated my cursor cli today with cursor-agent update and then it just broke.
After cleaning up and re-installing like @deanrie said, I am getting the same problem.
cursor-agent
/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589
throw new Error('node-loader:\n' + error);
^
Error: node-loader:
Error: dlopen(/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node, 0x0001): tried: '/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node' (no such file), '/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
at ../../node_modules/.pnpm/@[email protected]/node_modules/@lydell/node-pty-darwin-arm64/pty.node (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589:9)
at __webpack_require__ (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/unixTerminal.js (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9918:11)
at __webpack_require__ (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/index.js (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9664:21)
at __webpack_require__ (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ./src/bridge/bridge.ts (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:386230:16)
at __webpack_require__ (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at /Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:432240:75
at __webpack_require__.a (/Users/tledakis/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435698:13)
Node.js v24.5.0
❯ uname -m
arm64
❯ arch
arm64
@deanrie Not sure if helps for my particular case (old m1 macbook with lots of patched versions of node etc over the years). Also running heavily rosetta for lots of things. My system’s node is x86_64
I tried to debug the install script myself in cursor, and I’ll attach the agent output here. Hope it helps with figuring out the problem.
For reference, the old 2025.08.08-f57cb59 cursor-agent version worked perfectly. After today’s cursor-agent update though I could never go back to it even if I symlinked to that. The agent auto changes the symlink after the 1st run to the more recent version.
forum does not allow .md uploads so renamed it to .txt
Thanks everyone for the extra info! This is indeed a bug in the installer build 2026.01.02-80e4d9b. It detects the architecture incorrectly and downloads the wrong pty.node binary.
The team is already working on a fix (the bug is being tracked internally).
A simple temporary workaround is to delete the broken version, and cursor-agent will automatically use the previous working one:
The official download package for macOS x64 seems to contain binaries built for arm64 (Apple Silicon). This causes the agent to crash immediately on Intel Macs.
Steps to Reproduce
Run the install command on an Intel Mac: curl https://cursor.com/install -fsS | bash
The script detects darwin/x64 correctly.
It downloads the package from the official x64 path: https://downloads.cursor.com/lab/2026.01.02-80e4d9b/darwin/x64/agent-cli-package.tar.gz
The agent fails to start with the following error:
Error: dlopen(…/pty.node, 0x0001): … (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’))
When running cursor-agent --version on Intel-based Macs, the command fails with an architecture incompatibility error. The error indicates that the pty.node native module was compiled for ARM64 architecture, but the system requires x86_64.
Expected behavior: The command should display the version number and run successfully
Actual behavior: Throws an architecture mismatch error and exits
Steps to Reproduce
Install Cursor on an Intel-based Mac
Run command: cursor-agent --version
Observe architecture incompatibility error
Expected Behavior
cursor-agent incorrectly attempts to load arm64 architecture pty.node file on Intel Macs
Cursor Agent darwin/x64 package ships arm64 pty.node, crashes on Intel Macs with “incompatible architecture”
Report content
Summary
On an Intel Mac (x86_64), installing the latest Cursor Agent via curl https://cursor.com/install -fsS | bash installs the darwin/x64 package, but the bundled native module pty.node is built for arm64. This causes Cursor Agent to crash at startup with a dlopen incompatible architecture error.
Environment
OS: macOS (Darwin), Intel Mac
uname -m: x86_64
Node.js: v24.5.0
node -p "process.arch": x64
Cursor Agent version installed by script: 2026.01.02-80e4d9b
So the darwin/x64 artifact appears to be incorrectly packaged (at least pty.node).
Temporary workaround
Replace the bundled pty.node with the x86_64 build from @lydell/[email protected], then Cursor Agent runs normally. (This suggests the issue is isolated to the packaged pty.node in the released tarball.)
Request
Please republish/fix the darwin/x64 Cursor Agent package for version 2026.01.02-80e4d9b (or release a new version) ensuring pty.node is built for and shipped as x86_64 in the darwin/x64 artifact.
Steps to Reproduce
Steps to reproduce
On an Intel Mac, run:
curl -fsS https://cursor.com/install | bash
Run:
cursor-agent
Expected behavior cursor-agent starts normally on Intel Macs.
Actual behavior cursor-agent crashes immediately with an error like:
dlopen(.../pty.node): mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')
I am using an Intel-based Mac (x86_64). After installing the latest Cursor CLI and running the agent command, it fails with a dlopen architecture mismatch error. The CLI seems to have downloaded the arm64 version of pty.node, but my system requires x86_64.
Error: node-loader:
Error: dlopen(/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node, 0x0001): tried: ‘/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node’ (no such file), ‘/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/pty.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’))
at ../../node_modules/.pnpm/@[email protected]/node_modules/@lydell/node-pty-darwin-arm64/pty.node (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9589:9)
at webpack_require (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/unixTerminal.js (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9918:11)
at webpack_require (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/index.js (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:9664:21)
at webpack_require (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at ./src/bridge/bridge.ts (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:386230:16)
at webpack_require (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435632:42)
at /Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:432240:75
at webpack_require.a (/Users/hr/.local/share/cursor-agent/versions/2026.01.02-80e4d9b/index.js:435698:13)
Node.js v24.5.0
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Starting today (2026.01.09), cursor-agent stopped working on my mac with the error below.
The error persists after installing from scratch.
The installer output says:
Detected darwin/x64
But there seems to be an arm64 binary in the distribution - pty.node.
The cursor IDE still works for me.
I asked it about this error (model: claude-4.5-opus-high) and this is the reply (abbreviated):
Looking at this error, the problem is an architecture mismatch. Let me break it down:
The Issue
The error message says:
mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’)
This means:
The pty.node binary in the new cursor-agent version (2026.01.09-6d4aaf8) is compiled for ARM64 (Apple Silicon)
But the process trying to load it is running in x86_64 mode (Intel/Rosetta)
Why It Worked Yesterday
Yesterday you were likely using an older version of cursor-agent. Today, a new version (2026.01.09-6d4aaf8) was auto-updated, and there’s a mismatch between the architecture of the agent binary and how your Cursor app is running.
…
Next Steps
…
If you intentionally need Cursor to run under Rosetta for some reason, then the cursor-agent binaries need to match (x86_64). In that case, this might be a bug in the cursor-agent distribution that should be reported to the Cursor team.
Error: node-loader:
Error: dlopen(/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node, 0x0001): tried: ‘/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node’ (no such file), ‘/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64h’ or ‘x86_64’))
at ../../node_modules/.pnpm/@[email protected]/node_modules/@lydell/node-pty-darwin-arm64/pty.node (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9589:9)
at webpack_require (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/unixTerminal.js (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9918:11)
at webpack_require (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/index.js (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9664:21)
at webpack_require (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at ./src/bridge/bridge.ts (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:451312:16)
at webpack_require (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at /Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:497717:75
at webpack_require.a (/Users/avners/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529662:13)
Node.js v24.5.0
Steps to Reproduce
Install cursor-agent on mac with an intel processor
Run the command cursor-agent --version
Expected Behavior
curosr-agent should print its version
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
curl -fsS https://cursor.com/install | bash
Cursor Agent Installer
✓ Detected darwin/x64
✓ Package downloaded and extracted
✓ Package installed successfully
✓ Bin directory ready
✓ Symlink created
✨ Installation Complete!
Start using Cursor Agent:
agent
Happy coding! 🚀\`\```
agent
/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9589
throw new Error('node-loader:\n' + error);
^
Error: node-loader:
Error: dlopen(/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node, 0x0001): tried: '/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node' (no such file), '/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/pty.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
at ../../node_modules/.pnpm/@[email protected]/node_modules/@lydell/node-pty-darwin-arm64/pty.node (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9589:9)
at __webpack_require__ (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/unixTerminal.js (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9918:11)
at __webpack_require__ (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at ../../node_modules/.pnpm/@[email protected]_patch_hash=8cc7c6b3b59e47c0436b0f2bbb89cec1ced0f8ac0beadc41a2d07016bef0ea46/node_modules/@lydell/node-pty/index.js (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:9664:21)
at __webpack_require__ (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at ./src/bridge/bridge.ts (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:451312:16)
at __webpack_require__ (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529596:42)
at /Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:497717:75
at __webpack_require__.a (/Users/dupu/.local/share/cursor-agent/versions/2026.01.09-6d4aaf8/index.js:529662:13)
Node.js v24.5.0