---
title: "Migrating to vlt"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/migration"
image: "https://docs.vlt.io/og/client/migration"
lang: "en"
---

# 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**](https://docs.vlt.io/client/migration/from-npm.md) — Migrate from npm to vlt
- [**From yarn**](https://docs.vlt.io/client/migration/from-yarn.md) — Migrate from yarn (v1 classic or v2+ berry) to vlt
- [**From pnpm**](https://docs.vlt.io/client/migration/from-pnpm.md) — Migrate from pnpm to vlt

### What Changes

Regardless of which package manager you're coming from, the core changes are:

1. **Configuration moves to `vlt.json`** — A single JSON file replaces `.npmrc`, `.yarnrc.yml`, or `.npmrc` + `pnpm-workspace.yaml`
2. **Lockfile format changes** — vlt uses `vlt-lock.json` instead of `package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`
3. **Install scripts don't run by default** — vlt separates installation from build. `vlt install` downloads packages without executing any lifecycle scripts. Use `vlt build` to selectively run scripts afterward
4. **Security is built in** — vlt integrates with [Socket](https://socket.dev/) for malware detection, and the query system lets you audit your dependency graph before any code runs

### What Stays the Same

- Your `package.json` files don't change (dependencies, scripts, etc.)
- Workspaces declared in the root `package.json` (npm, yarn) or in `pnpm-workspace.yaml` `packages` (pnpm) are read, and `vlt install` copies them to `vlt.json` (commit it; `vlt ci` reads `vlt.json` only)
- `node_modules` structure is compatible — your code runs the same way
- Registry authentication uses tokens, just stored differently
- Workspace packages referenced with the `workspace:` protocol keep working; those referenced by plain ranges (npm, yarn v1) are always linked by adding one [`:project > :workspace` graph modifier](https://docs.vlt.io/client/graph-modifiers.md#implicit-workspace-references) to the same `vlt.json`
