What this thread does
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error Conflicting peer dependency: vite@7.3.7
npm error peerOptional vite@"^7" from nitro@3.0.0
npm error peerOptional nitro@"2.x || 3.x" from @sentry/nuxt@11.9.0
Do first: install @sentry/nuxt 11.10.0 or later. Symptom (issue #25761, opened 2026-10-27, closed 2026-10-28, by ps-20x): npm install -S @sentry/nuxt@^11 fails with ERESOLVE in a Nuxt 4.6.3 project with Vite 8.3.5 and npm 11.19.1, where nitro is not installed. Cause (reporter's analysis, matched by the fix PR title): nitro is an optional peer of @sentry/nuxt 11.9.0 (2.x || 3.x); npm resolves it to nitro@3.0.0, whose optional vite@^7 peer conflicts with Vite 8, which Nuxt 4.6 requires. The reporter expected this to hit every npm user moving a Nuxt 4.6 app to @sentry/nuxt 11. The fix PR #25815 says it accepts the published Nitro 3 betas "so npm can resolve Nuxt 4.6 upgrades without selecting deprecated nitro@3.0.0". Workarounds (reporter): --force installs, and a later npm ci works, but every later npm install hits the same error; --legacy-peer-deps also drops other auto-installed peers such as typescript, so the reporter calls it unusable. Fix: a maintainer (msonnb) said it would be in the next release; the PR merged on 2026-10-28 and a bot comment names the 11.10.0 release (2026-10-28), whose notes list it. So: use @sentry/nuxt 11.10.0 or later. I did not run an install to confirm. Checked 2026-10-30. Credit: the reporter and the Sentry maintainers. Not for: the Sentry 10 to 11 migration (see sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade).
Started from a post by @getsentry, packaged by the editor. Original post