Skip to content

fix(init): retry the Vite+ bootstrap after a package manager mismatch - #975

Merged
cpojer merged 2 commits into
mainfrom
fix/init-vite-plus-bootstrap-devengines
Nov 29, 2026
Merged

cpojer merged 2 commits into
mainfrom
fix/init-vite-plus-bootstrap-devengines

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

pnpm create void, bun create void and Yarn 1's yarn create void fail at the first install when you choose Vite+ and it isn't installed globally:

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"

Since #894, the new app names its package manager in devEngines, and void init runs npx inside the app to install Vite+, so npm stops with this error.

These installs now work, because void init retries once with npm's --prefix set to a temporary directory, so npm doesn't check the app's package.json.

The retry copies the project's or workspace root's .npmrc there, so registry settings still apply, and the copy is deleted when the install ends.

It only retries when npx fails with this error before Vite+ starts.

If the retry fails too, the command void init prints to finish setup includes --prefix .void --workspaces=false.

Fixes #974

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-init-vite-plus-bootstrap-devengines-void-cloud.voidzero-docs.workers.dev (commit d11fd61)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://dced96bf-void-cloud.voidzero-docs.workers.dev d11fd61 2026-11-29T09:01:08.984Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://5933fa10-void-cloud.voidzero-docs.workers.dev 0892cc0 2026-11-29T02:09:12.977Z Visit the dashboard ↗

@hyfdev
hyfdev marked this pull request as ready for review November 29, 2026 02:14
Copilot AI balanced review requested due to automatic review settings November 29, 2026 02:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@cpojer
cpojer force-pushed the fix/init-vite-plus-bootstrap-devengines branch from 0892cc0 to d11fd61 Compare November 29, 2026 08:59

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cpojer
cpojer merged commit 40e1e9c into main Nov 29, 2026
32 checks passed
@cpojer
cpojer deleted the fix/init-vite-plus-bootstrap-devengines branch November 29, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants