ClientOverview
Migrating to vlt
Migrating to vlt from Other Package Managers
This section covers how to switch from npm, yarn, or pnpm to vlt. Each guide walks through the concrete steps: configuration, commands, lockfiles, workspaces, and the key differences to be aware of.
Choose Your Migration Path
- From npm — Migrate from npm to vlt
- From yarn — Migrate from yarn (v1 classic or v2+ berry) to vlt
- From pnpm — Migrate from pnpm to vlt
What Changes
Regardless of which package manager you’re coming from, the core changes are:
- Configuration moves to
vlt.json— A single JSON file replaces.npmrc,.yarnrc.yml, or.npmrc+pnpm-workspace.yaml - Lockfile format changes — vlt uses
vlt-lock.jsoninstead ofpackage-lock.json,yarn.lock, orpnpm-lock.yaml - Install scripts don’t run by default — vlt separates
installation from build.
vlt installdownloads packages without executing any lifecycle scripts. Usevlt buildto selectively run scripts afterward - Security is built in — vlt integrates with Socket for malware detection, and the query system lets you audit your dependency graph before any code runs
What Stays the Same
- Your
package.jsonfiles don’t change (dependencies, scripts, etc.) node_modulesstructure is compatible — your code runs the same way- Registry authentication uses tokens, just stored differently
- Workspace packages still use
workspace:protocol references