Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On Windows, Cursor prepends its bundled node.exe to PATH in agent shells:
%LOCALAPPDATA%\Programs\cursor\resources\app\resources\helpers\node.exe (v22.x)
When the agent runs project commands (node, npm, tests, scripts), it uses that bundled Node instead of the system-installed Node that is already on PATH.
This is not caused by NVM or any other version manager. The same issue would occur with a standard Node.js install from nodejs.org. I use NVM for Windows on my machine, but that is only how my Node happens to be installed — the bug is that Cursor’s bundled binary is prepended ahead of any system Node on PATH.
In a normal CMD/PowerShell window outside Cursor, where node shows the system install first (in my case C:\Program Files\nodejs\node.exe at v16.x). Inside Cursor’s agent shell, Cursor’s bundled binary wins and node -v returns v22.x.
Cursor’s bundled Node is fine for Cursor’s own internals. The problem is that user project commands inherit the wrong node because bundled Node takes priority over the system PATH.
Steps to Reproduce
- Install Node on Windows by any normal means (direct installer, NVM, fnm, etc.).
- In a normal CMD window outside Cursor, confirm:
System Node path is first; your installed version is returned.where node node -v - Open Cursor (user install at
%LOCALAPPDATA%\Programs\cursor). - Ask the agent to run:
where node node -v - Observe the first
nodeon PATH is:
and%LOCALAPPDATA%\Programs\cursor\resources\app\resources\helpers\node.exenode -vreturns Cursor’s bundled version (v22.x), not your system install. - Run a project script or test that requires your installed Node version — it runs under the wrong Node.
Expected Behavior
- Cursor’s bundled Node stays available for Cursor internals only.
- Agent shell commands for user project code should resolve
nodevia the system PATH, the same as a normal terminal. where nodein an agent shell should not prefer Cursor’s bundled binary over the system-installed Node.
Operating System
Windows 10/11
Version Information
Version: 3.6.21
VSCode Version: 1.105.1
Commit: e7a7e93f4d75f8272503ecf33cedbaae10114a10
Additional Information
- I use NVM for Windows, but this is not an NVM bug — a plain Node install would hit the same PATH precedence issue.
- My project requires Node v16.x; Cursor bundles v22.x.
- Workaround: prepend system Node to PATH before project commands:
Or use the full path to your systemset PATH=C:\Program Files\nodejs;%PATH%&& node -vnode.exe. Do not modify Cursor’s bundlednode.exe.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor