Installing Dependencies
vp install installs dependencies using the current workspace's package manager.
Overview
Use Vite+ to manage dependencies across pnpm, npm, and Yarn. Instead of switching between pnpm install, npm install, and yarn install, you can keep using vp install, vp add, vp remove, and the rest of the Vite+ package-management commands.
Vite+ detects the package manager from the workspace root in this order:
packageManagerinpackage.jsonpnpm-workspace.yamlpnpm-lock.yamlyarn.lockor.yarnrc.ymlpackage-lock.json.pnpmfile.cjsorpnpmfile.cjsyarn.config.cjs
If none of those files are present, vp falls back to pnpm by default. Vite+ automatically downloads the matching package manager and uses it for the command you ran.
Usage
vp installCommon install flows:
vp install
vp install --frozen-lockfile
vp install --lockfile-only
vp install --filter web
vp install -wvp install maps to the correct underlying install behavior for the detected package manager, including the right lockfile flags for pnpm, npm, and Yarn.
Global Packages
Use the -g flag for installing, updating or removing globally installed packages:
vp install -g <pkg>installs a package globallyvp uninstall -g <pkg>removes a global packagevp update -g [pkg]updates one global package or all of themvp list -g [pkg]lists global packages
Managing Dependencies
Vite+ provides all the familiar package management commands:
vp installinstalls the current dependency graph for the projectvp add <pkg>adds packages todependencies, use-DfordevDependenciesvp remove <pkg>removes packagesvp updateupdates dependenciesvp dedupereduces duplicate dependency entries where the package manager supports itvp outdatedshows available updatesvp listshows installed packagesvp why <pkg>explains why a package is presentvp info <pkg>shows registry metadata for a packagevp linkandvp unlinkmanage local package linksvp dlx <pkg>runs a package binary without adding it to the projectvp pm <command>forwards a raw package-manager-specific command when you need behavior outside the normalizedvpcommand set
Command Guide
Install
Use vp install when you want to install exactly what the current package.json and lockfile describe.
vp installis the standard install commandvp install --frozen-lockfilefails if the lockfile would need changesvp install --no-frozen-lockfileallows lockfile updates explicitlyvp install --lockfile-onlyupdates the lockfile without performing a full installvp install --prefer-offlineandvp install --offlineprefer or require cached packagesvp install --ignore-scriptsskips lifecycle scriptsvp install --filter <pattern>scopes install work in monoreposvp install -winstalls in the workspace root
Global Install
Use these commands when you want package-manager-managed tools available outside a single project.
vp install -g typescriptvp uninstall -g typescriptvp update -gvp list -g
Add and Remove
Use vp add and vp remove for day-to-day dependency edits instead of editing package.json by hand.
vp add reactvp add -D typescript vitestvp add -O fseventsvp add --save-peer reactvp remove reactvp remove --filter web react
Update, Dedupe, and Outdated
Use these commands to maintain the dependency graph over time.
vp updaterefreshes packages to newer versionsvp outdatedshows which packages have newer versions availablevp dedupeasks the package manager to collapse duplicates where possible
Inspect
Use these when you need to understand the current state of dependencies.
vp listshows installed packagesvp why reactexplains whyreactis installedvp info reactshows registry metadata such as versions and dist-tags
Advanced
Use these when you need lower-level package-manager behavior.
vp linkandvp unlinkmanage local development linksvp dlx create-viteruns a package binary without saving it as a dependencyvp pm <command>forwards directly to the resolved package manager
Examples:
vp pm config get registry
vp pm cache clean --force
vp pm exec tsc --version