# Newest cursor CLI has broken node binary on WSL, "Exec format error"

**URL:** <https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913>\
**Category:** Bug Reports\
**Tags:** cli\
**Created:** [October 3, 2025, 12:56am UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913 "2025-10-03T00:56:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachmu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/zachmu/32/81914_2.png) [@zachmu](https://forum.cursor.com/u/zachmu)\
**Post date:** [October 3, 2025, 12:56am UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/1 "2025-10-03T00:56:41Z")

</div>

### Where does the bug appear (feature/product)?

Cursor CLI

### Describe the Bug

Fresh install on WSL is broken at launch because the included node binary is not executable for the platform, “Exec format error”

### Steps to Reproduce

Install with `curl https://cursor.com/install -fsS | bash `

Run `cursor-agent`

Output:

```auto
/c/Users/zachmu/.local/bin/cursor-agent: line 10: /c/Users/zachmu/.local/share/cursor-agent/versions/2025.10.02-bd871ac/node: cannot execute binary file: Exec format error

```

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

2025.10.02-bd871ac

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [October 3, 2025, 1:19pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/3 "2025-10-03T13:19:27Z")

</div>

Hi @zachmu, Cursor Agent does not support the GIT Bash shell. It should work in WSL, though!

---

<div class="post-metadata">

**Author:** ![zachmu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/zachmu/32/81914_2.png) [@zachmu](https://forum.cursor.com/u/zachmu)\
**Post date:** [October 3, 2025, 5:55pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/4 "2025-10-03T17:55:35Z")

</div>

This is via WSL-1. Previously installed build worked fine. `cursor-agent` updated itself the last time I ran it, which caused this error. Fresh install after `rm -rf` on the installation directory leads to the error above.

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [October 3, 2025, 6:32pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/6 "2025-10-03T18:32:26Z")

</div>

Hi @zachmu, could you try using WSL2? WSL1 is not supported.

---

<div class="post-metadata">

**Author:** ![zachmu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/zachmu/32/81914_2.png) [@zachmu](https://forum.cursor.com/u/zachmu)\
**Post date:** [October 3, 2025, 8:30pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/7 "2025-10-03T20:30:49Z")

</div>

Unfortunately no, I can’t easily switch to WSL2.

Is there a workaround for getting this running on WSL1 that you know of? It certainly worked before, and many other node programs work in this same environment. Seems like the install script is just fetching the wrong node binary for some reason

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [October 3, 2025, 10:51pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/9 "2025-10-03T22:51:26Z")

</div>

Hi @zachmu, please see this as a potential workaround:

> [@Cannot execute binary file: Exec format error](https://forum.cursor.com/t/cannot-execute-binary-file-exec-format-error/136009/3):
>
> This is the workaround: [cnd@RoG:~/…/cursor-agent/versions/2025.10.02-bd871ac]$ mv node node-ng [cnd@RoG:~/…/cursor-agent/versions/2025.10.02-bd871ac]$ ln -s ../2025.09.17-25b418f/node

---

<div class="post-metadata">

**Author:** ![zachmu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/zachmu/32/81914_2.png) [@zachmu](https://forum.cursor.com/u/zachmu)\
**Post date:** [October 3, 2025, 11:01pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/10 "2025-10-03T23:01:22Z")

</div>

In my case I had already removed the entire `cursor-agent/versions` directory, but I was able to fix it by linking to my main node binary instead.

Would appreciate if you guys could look into fixing this, it is going to break itself again the next time it auto-updates.

---

<div class="post-metadata">

**Author:** ![aurafriday](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/aurafriday/32/81943_2.png) [@aurafriday](https://forum.cursor.com/u/aurafriday)\
**Post date:** [October 4, 2025, 2:46am UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/12 "2025-10-04T02:46:14Z")

</div>

@zachmu - this is actually a node problem - not a cursor one - if you update “node” on your WSL1, (unrelated to cursor) you will get the same problem as well (node itself is broken)… so beware “sudo apt update” for the time being!

---

<div class="post-metadata">

**Author:** ![yafangwang9](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/yafangwang9/32/72714_2.png) [@yafangwang9](https://forum.cursor.com/u/yafangwang9)\
**Post date:** [October 16, 2025, 6:14pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/14 "2025-10-16T18:14:44Z")

</div>

I also meet. these steps made me solve [Cannot execute binary file: Exec format error - #4 by yafangwang9](https://forum.cursor.com/t/cannot-execute-binary-file-exec-format-error/136009/4)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [November 7, 2025, 6:15pm UTC](https://forum.cursor.com/t/newest-cursor-cli-has-broken-node-binary-on-wsl-exec-format-error/135913/16 "2025-11-07T18:15:24Z")

</div>

Closed on November 7, 2025, 6:15pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
