Documentación offline pnpm main

Catalogmode

main Documentación oficial Licencia MITDescargado el 2026-08-02

En esta página

catalogMode#

Added in: v10.12.1

  • Default: manual
  • Type: manual, strict, prefer

Controls if and how dependencies are added to the default catalog, when running pnpm add. There are three modes:

  • strict - only allows dependency versions from the catalog. Adding a dependency outside the catalog's version range will cause an error.
  • prefer - prefers catalog versions, but will fall back to direct dependencies if no compatible version is found.
  • manual (default) - does not automatically add dependencies to the catalog.