Skip to content

On main, pnpm create void fails at the first install when Vite+ isn't installed globally #974

Done

Description

@hyfdev

Since #894, pnpm create void, bun create void and Yarn 1's yarn create void fail at the first install when you choose Vite+ and there is no global vp:

npm error code EBADDEVENGINES
npm error EBADDEVENGINES The developer of this package has specified the following through devEngines
npm error EBADDEVENGINES Invalid devEngines.packageManager
npm error EBADDEVENGINES Invalid name "pnpm" does not match "npm" for "packageManager"

void init now declares the invoking package manager in the new app's devEngines.

It then installs Vite+ with npx inside that app, and npx stops because the app requires another package manager.

To reproduce just the npx step, put this package.json in an empty directory:

{ "devEngines": { "packageManager": { "name": "pnpm" } } }

Then run npx --yes --package=vite-plus vp --version there.

The released 1.12.2 isn't affected.

#975 fixes it.

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

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions