Skip to content

feat(cli): delegate multiple global installs to npm#1591

Closed
liangmiQwQ wants to merge 1 commit into
voidzero-dev:mainfrom
liangmiQwQ:feat/delegate-multiple-package-installation-to-npm
Closed

feat(cli): delegate multiple global installs to npm#1591
liangmiQwQ wants to merge 1 commit into
voidzero-dev:mainfrom
liangmiQwQ:feat/delegate-multiple-package-installation-to-npm

Conversation

@liangmiQwQ
Copy link
Copy Markdown
Contributor

@liangmiQwQ liangmiQwQ commented May 15, 2026

Summary

  • Add a batch-aware global install path for multiple vp install -g package specs.
  • Route vp update -g package batches through the same path so npm handles the install work in one process.
  • Keep managed package metadata, binary conflict checks, shim creation, and the existing npm-prefix package layout after the batch install completes.

Why

Multiple global package installs previously resolved Node and spawned npm install -g once per package. Delegating the package list to one npm invocation lets npm handle its own parallel download and extraction work while Vite+ performs the managed-store commit afterward.

Resolves #1476

Validation

  • cargo test -p vite_global_cli global_install -- --nocapture
  • git diff --check

Note: cargo test -p vite_global_cli currently aborts in tests::unknown_argument_detected_with_pass_as_value_hint with a stack overflow; the same failure reproduces when running that single test directly.

🤖 Generate with Codex

@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit dd5b954
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a072cca6254f100084b658f

@liangmiQwQ liangmiQwQ changed the title Delegate multiple global installs to npm feat(cli): delegate multiple global installs to npm May 15, 2026
@liangmiQwQ liangmiQwQ closed this May 16, 2026
@liangmiQwQ liangmiQwQ deleted the feat/delegate-multiple-package-installation-to-npm branch May 16, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance vp install -g and vp update -g with multiple packages

1 participant