Different behaviour between Cursor shell and Terminal

Describe the Bug

When Cursor tries to run a shell command in Composer that uses NPM it always complains about Node being an old version. When I run the same command in Cursor Terminal it runs fine.

Steps to Reproduce

Cursor generates shell command in composer: npm install --save-dev prettier eslint-config-prettier eslint-plugin-prettier
Tell Composer to run the command.
It errors because it thinks Node is v12.13.0. Check Node version in Terminal and it is v22.12.0.

Expected Behavior

It should see the same Node version as Terminal and be able to run.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.44.9
VSCode Version: 1.93.1
Commit: 316e524257c2ea23b755332b0a72c50cf23e1b00
Date: 2024-12-26T21:58:59.149Z (5 days ago)
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Additional Information

None

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Here’s the other screenshot

hey! sorry for the late reply here. i’ve tried this locally as well, and i suspect it could be either because:

  • using zsh instead of bash (my case)
  • using nvm to specify and load node environment

are you using any of these? also, try updating to latest version and see if that might help!

Thanks,
I’ll see if it comes up again. I definitely remember it was using two different shells. I have updated since then so I’ll see if it comes up again.