Перейти до основного змісту
Версія: 9.x

Промислова експлуатація

Існує два способи завантажити пакунок у промисловому середовищі з pnpm. Одним з них є фіксація файлу блокування. 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. Це найефективніший спосіб (і той, який ми рекомендуємо) забезпечити збереження дерева залежностей у різних середовищах.

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.