Skip to content

The update notice tells users to install @prisma/cli and does not recognise a global prisma install #306

Description

@wmadden-electric

In packages/cli/src/update-check.ts, every update instruction names @prisma/cli@latest, and isLikelyGlobalNpmEntrypoint matches only prisma-cli bin paths. A user with a global prisma install gets the docs-link fallback instead of a concrete command, and the command it would give names the wrong package. This became visible after the binary was renamed to prisma.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out:

- **`isLikelyGlobalNpmEntrypoint` (update-check.ts) matches only `prisma-cli` install paths**, so a globally-installed `prisma` gets the docs-link fallback instead of a concrete update command; `selectUpdateInstruction` still names `@prisma/cli`. Newly conspicuous after the CLI_NAME → prisma rename.

🤖 Generated with Claude Code

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions