GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enhance Vite+ package manager management · Issue #2375 · voidzero-dev/vite-plus

Enhance Vite+ package manager management #2375

New issue
Copy link
New issue
Copy link
Closed
Task
1 / 11 of 1 issue completed
#2399
Closed
Enhance Vite+ package manager management#2375
Task
1 / 11 of 1 issue completed
#2399
Copy link
Assignees
liangmiQwQ
Labels
enhancementNew feature or request
Milestone
RC

Description

@liangmiQwQ
liangmiQwQ
opened on Aug 7, 2026
Issue body actions

There is room to improve the current package-manager management system.

  1. Vite+ currently provisions package managers for both the global and local CLI.

    • This is expected for the global CLI.
    • The local CLI can also run without a global Vite+ installation. Package-manager commands may therefore create Vite+-managed state even when Vite+ is installed only in a project.
    • Several Vite+ features need a package manager to be available. The old implementation mixed project detection, downloads, PATH changes, and manifest updates, which made behavior inconsistent and caused problems such as Do not update package.json when running vpr #2374 and bug: vp i pins npm@11 into devEngines on low Node, breaking manual npm with "Cannot find module node:path" #1916.
  2. Corepack was introduced in feat(env): add corepack to the default shims tool list #1808 to expose package-manager binaries.

    • Corepack handles npm, pnpm, and Yarn, while Vite+ also supports package managers such as Bun.
    • Vite+ already has its own package-manager version resolution and download logic, so Corepack creates overlapping concepts and can download a second copy of the same manager.
    • Corepack is unmaintained and does not support newer managers such as pnpm 12.

Proposed package-manager refactor plan

The refactor is split into three dependent but independently mergeable parts:

  1. Replace Corepack with Vite+-owned shims

    PR feat(env)!: replace Corepack with package manager shims #2391 removes the Corepack integration. vp env setup directly provides shims for npm, pnpm, Yarn, and Bun.

  2. Manage package managers through vp env

    PR feat(env)!: manage package manager environments #2398 extends vp env from Node.js-only management to a complete JavaScript environment: Node.js plus package-manager components. Commands such as pin, use, install, clean, and current can manage either component.

  3. Resolve and run managed package managers without implicit project writes

    PR fix(pm): avoid implicit project writes #2399 keeps ordinary package-manager commands on Vite+ managed binaries. A command detects the manager and version from project metadata, resolves or downloads that version, and executes the managed binary directly. The package manager does not need to be preinstalled on PATH.

    Detection is non-mutating. Lockfiles, configuration files, defaults, and devEngines.packageManager ranges can select a manager for the current command without adding or rewriting package-manager metadata in package.json. Projects can create or remove an explicit declaration with vp env pin and vp env unpin.

    Project-local dependency commands such as vp install and vp add require an existing package.json. Managed global operations continue to use the Vite+ global package store.

The goal is to separate responsibilities that were previously mixed together:

  • detecting which package manager and version a project uses;
  • provisioning and selecting managed versions through vp env and shims;
  • executing ordinary package-manager commands without implicit project mutation.

This addresses the unexpected package.json mutation reported in #2374, avoids the incompatible implicit npm pin reported in #1916, and removes the overlap between Corepack and Vite+ package-manager management. Unlike the earlier PATH-based proposal, it also preserves version-correct commands when no system package manager is installed; local-only Vite+ usage may still provision Vite+-managed state when a package manager is needed.

The change is technically breaking, but common workflows should remain mostly unchanged. The main affected cases are Corepack-specific usage, scripts consuming vp env --json, and workflows that relied on package-manager commands to create or update package.json implicitly.

Reacted by JongKyung Lee
Reacted by Max

Sub-issues

Collapse Sub-issuesSub-issues

1 of 11 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. liangmiQwQ
    self-assigned this
    on Aug 7, 2026
  2. liangmiQwQ
    added
    enhancementNew feature or request
    on Aug 7, 2026
  3. fengmk2
    added this to the RC milestone on Aug 7, 2026
  4. liangmiQwQ commented on Aug 8, 2026

    @liangmiQwQ
    liangmiQwQ
    on Aug 8, 2026
    CollaboratorAuthor
    More actions

    I'm thinking about if merge pm management into vp env, semantically pm is also a part of environment.

    The reason why I thought in this way is the current upgrade flow only runs new installation's vp env setup --fresh. So technically, this would be troublesome. And vp pm has already been here for now, too.

  5. liangmiQwQ
    added a sub-issue on Aug 8, 2026
    • Do not update package.json when running vpr #2374
  6. liangmiQwQ
    added the
    Task
    issue type on Aug 9, 2026
  7. fengmk2
    added a commit that references this issue on Aug 30, 2026

    feat(env)!: replace Corepack with package manager shims (#2391)

    29e167d
  8. fengmk2
    closed this as completedin #2399on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @liangmiQwQ
    liangmiQwQ

Labels

enhancementNew feature or request

Type

Task

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    • RC

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.