Files
pnpm/pnpm11/docs/production.md
Zoltan Kochan 07839df5c3 docs: move product documentation beside its implementation (#16385)
* docs: move website documentation into the pnpm repository

* docs: keep v11 and v12 documentation beside their implementations

* docs(pnpr): keep registry documentation beside its implementation

* ci: classify product documentation as documentation changes

* test: cover product documentation in Rust CI exclusions

* ci: isolate documentation publishing and support manual sync

* test: make dependency status fixture timestamps deterministic
2026-09-29 15:56:43 +02:00

982 B

id, title
id title
production Production

There are two ways to bootstrap your package in a production environment with pnpm. One of these is to commit the lockfile. Then, in your production environment, run pnpm install - this will build the dependency tree using the lockfile, meaning the dependency versions will be consistent with how they were when the lockfile was committed. This is the most effective way (and the one we recommend) to ensure your dependency tree persists across environments.

The other method is to commit the lockfile AND copy the package store to your production environment (you can change where with the store location option). Then, you can run pnpm install --offline and pnpm will use the packages from the global store, so it will not make any requests to the registry. This is recommended ONLY for environments where external access to the registry is unavailable for whatever reason.