Repository navigation
Description
Description
Perform a clean install. This command runs pnpm clean followed by pnpm install --frozen-lockfile.
Designed for CI/CD environments where reproducible builds are critical.
https://pnpm.io/11.x/cli/ci
The main differences between using
npm installandnpm ciare:
- The project must have an existing
package-lock.jsonornpm-shrinkwrap.json.- If dependencies in the package lock do not match those in
package.json,npm ciwill exit with an error, instead of updating the package lock.npm cican only install entire projects at a time: individual dependencies cannot be added with this command.- If a
node_modulesis already present, it will be automatically removed beforenpm cibegins its install.- It will never write to
package.jsonor any of the package-locks: installs are essentially frozen.
Suggested solution
Add ci subcommand like:
npm ci: https://docs.npmjs.com/cli/v11/commands/npm-cipnpm ci: https://pnpm.io/11.x/cli/ci (Added in v11)
Alternative
Run rm -rf node_modules && vp install --frozen-lockfile manually.
Additional context
npm ci: https://docs.npmjs.com/cli/v11/commands/npm-cipnpm ci: https://pnpm.io/11.x/cli/ci
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Reacted by Yuhei Yasuda and CatBraaain
Activity
[-]`ci` (clean-install) subcommand[/-][+]Proposal: `ci` (clean-install) subcommand[/+]fengmk2 commentedon Apr 15, 2026
It should be a subcommand of
vp pm:vp pm cicpojer commentedon Apr 15, 2026
I agree,
vp pm ciis more than enough for this.ssssota commentedon Apr 15, 2026
Got it, that makes sense now. I understand the direction.
Thanks for the explanation!
fengmk2 commentedon Apr 15, 2026
Keep it open, we will implement the
vp pm cicommand later.forehalo commentedon Jul 7, 2026
I can take a look @fengmk2
feat(pm): add ci subcommand (voidzero-dev#2082)