You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Registry Quick Start should not tell npm/pnpm users to delete their lockfile when switching to the vlt.io mirror #1846
The registry Quick Start (www/docs/src/content/docs/registry/index.mdx) tells users of every package manager to delete their lockfile and node_modules when switching to the vlt.io mirror, e.g. the npm tab:
Then to switch all your dependencies to the vlt.io mirror, delete your package-lock.json and node_modules folder and reinstall:
rm -rf package-lock.json node_modules
npm install
The same step appears in the pnpm, yarn, bun and deno tabs.
Problem
For npm and pnpm this is unnecessary, and harmful: deleting the lockfile re-resolves every dependency and bumps versions for no reason, which is exactly what an end user hit while migrating a pnpm monorepo (they kept the lockfile, ignored the docs, and pnpm migrated fine).
Verified with a local registry switch, lockfile kept:
pnpm (10.30 / 11.24 / 12.4): pnpm-lock.yaml stores no tarball URLs. pnpm install --frozen-lockfile fetched every tarball from the new registry.
npm 11.16: npm ci with the old resolved: https://registry.npmjs.org/... entries fetched from the new registry (npm's replace-registry-host behaviour, on by default).
yarn / bun / deno: untested.
Note that the vlt CLI itself does not migrate a kept vlt-lock.json (nodes keep their resolved npmjs tarball URLs; tracked in #1579), so for vlt the deletion advice is currently the only way. That should be called out as a vlt limitation rather than presented as a universal step.
Proposed change
npm and pnpm tabs: replace the delete step with "keep your lockfile; run a normal install (npm install / pnpm install) and dependencies will be fetched from the mirror".
yarn / bun / deno tabs: verify and update likewise, or leave as is until verified.
Activity
ruy-bot commentedon Sep 14, 2026
Related: #1847 (the pnpm tab's
${VAR}.npmrcrecipe is also broken on pnpm ≥ 11), #1850 (pnpm ≤ 10 ignorespnpm-workspace.yamlregistry).docs: fix registry migration and CI auth guidance (vltpkg#1961)