Skip to content

[DOCS] Registry Quick Start should not tell npm/pnpm users to delete their lockfile when switching to the vlt.io mirror #1846

Closed

Description

@ruy-bot

📚 Documentation

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

Source: end-user feedback triage of a pnpm monorepo migration to registry.vlt.io (2026-09-11).

Activity

  1. added
    documentation
    on Sep 14, 2026
  2. ruy-bot commented on Sep 14, 2026

    @ruy-bot
    ContributorAuthor

    Related: #1847 (the pnpm tab's ${VAR} .npmrc recipe is also broken on pnpm ≥ 11), #1850 (pnpm ≤ 10 ignores pnpm-workspace.yaml registry).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationregistry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions