Skip to content

Windows: npm self-upgrade may fail to run cli setup #2623

In review

Description

@sentry-junior

After a package-manager upgrade, packages/cli/src/commands/cli/upgrade.ts finds the new CLI with whichSync("sentry") and runs cli setup on it with a plain spawn. On Windows, where.exe likely lists npm's extensionless shim before sentry.cmd, and Windows cannot run that shim, so the setup step likely fails after an npm upgrade. It should use the existing packages/cli/src/lib/windows-spawn.ts helper.

via @BYK.

--

View Session [Sentry]

Activity

  1. linear-code commented on Nov 30, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions