Where does the bug appear (feature/product)?
Background Agent (GitHub, Slack, Web, Linear)
Describe the Bug
One of our npm packages (@posthog/posthog-node) requires node 22 >22.22
Cursor Cloud Agent comes with node 22.21
.nvmrc appears to be ignored
I cannot downgrade posthog due to a CVE in the prior version
Steps to Reproduce
init a new repo
connect it to cursor
install [email protected]
try to start a background agent
Boot fails
INFO Successfully refreshed access token in git config. {"hostname":"github.com"}
INFO exec-daemon-gh: Writing token to gh hosts.yml
Scope: all 3 workspace projects
Lockfile is up to date, resolution step is skipped
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
Your Node version is incompatible with "@posthog/[email protected](@ai-sdk/[email protected])(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected])([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))".
Expected version: ^20.20.0 || >=22.22.0
Got: v22.21.1
This is happening because the package's manifest has an engines.node field specified.
To fix this issue, install the required Node version.
Expected Behavior
Cloud agent boots and continues to install
Operating System
Linux
Version Information
Cloud Agent
Does this stop you from using Cursor
Yes - Cursor is unusable