Skip to content

vp dedupe ​

Reduce duplicate dependency entries using the selected package manager.

bash
vp dedupe
vp dedupe --check

Options ​

OptionDescriptionNotes
--checkCheck if deduplication would make changes.

Compatibility ​

  • npm: npm dedupe.
  • pnpm: pnpm dedupe.
  • Yarn Classic: Fallback: yarn install.
  • Yarn Modern: yarn dedupe.
  • Bun: 1.4 or later: bun dedupe. Earlier versions use bun install as a fallback.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--checkYesYesNoYes1.4 or later

A fallback install is not a read-only check. Unsupported --check requests fail before the fallback runs.

Native Options ​

For native options, see npm dedupe, pnpm dedupe, Yarn dedupe, Yarn Classic install, and Bun dedupe. For the Bun fallback, see Bun install. To pass these options through Vite+, see Native Arguments.