GeezerVison is showing github.com — Proposal: `ci` (clean-install) subcommand · Issue #1389 · voidzero-dev/vite-plus
Proposal: ci (clean-install) subcommand #1389DescriptionDescription
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 install and npm ci are:
- The project must have an existing
package-lock.json or npm-shrinkwrap.json.
- If dependencies in the package lock do not match those in
package.json, npm ci will exit with an error, instead of updating the package lock.
npm ci can only install entire projects at a time: individual dependencies cannot be added with this command.
- If a
node_modules is already present, it will be automatically removed before npm ci begins its install.
- It will never write to
package.json or any of the package-locks: installs are essentially frozen.
https://docs.npmjs.com/cli/v11/commands/npm-ci
Suggested solution
Add ci subcommand like:
Alternative
Run rm -rf node_modules && vp install --frozen-lockfile manually.
Additional context
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 Activitychanged the title [-]`ci` (clean-install) subcommand[/-] [+]Proposal: `ci` (clean-install) subcommand[/+] on Apr 15, 2026fengmk2 commented on Apr 15, 2026 It should be a subcommand of vp pm: vp pm ci Reacted by JongKyung Lee and stefnotch cpojer commented on Apr 15, 2026 I agree, vp pm ci is more than enough for this. Reacted by TOMIKAWA Sotaro ssssota commented on Apr 15, 2026 Got it, that makes sense now. I understand the direction.
Thanks for the explanation! fengmk2 commented on Apr 15, 2026 Keep it open, we will implement the vp pm ci command later. Reacted by TOMIKAWA Sotaro, Gigih Aji Ibrahim, mikkelal and CatBraaain Reacted by JongKyung Lee forehalo commented on Jul 7, 2026 added a commit that references this issue on Aug 4, 2026This issue will close once commit 95db85b is merged into the 'main' branch.95db85b
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|