PkgSteward
Audience: End UserLast verified against repo: 2026-11-28

Pin Project packageManager

Pin or repair a project's packageManager field in package.json for npm 10–12 and pnpm 10–12 without reordering keys or changing indentation.

How format-preserving pinning works

Many JSON tools rewrite your entire package.json file, stripping UTF-8 BOMs, converting CRLF to LF, or reshuffling keys. PkgSteward modifies only the packageManager field (for example, pnpm@11.22.0 or npm@11.17.0) while preserving your existing BOM, line endings, indentation, and key order.Pinning only records the project declaration in package.json; it never alters your global Node.js installation or system Corepack configuration.

Pin or update packageManager on a project

Open any npm or pnpm project detail view (/projects?path=...) to preview and apply a pin.
01

1. Choose the target npm or pnpm version and click Preview

In the Project packageManager Pin card, pick your installed version or enter an exact stable version (npm 10–12 or pnpm 10–12) and click Preview.
Expected result: PkgSteward shows the exact before-and-after packageManager value and any cross-major repair warning.
02

2. Confirm to write the updated package.json field

Click Confirm to write the change to disk.
Expected result: package.json updates cleanly with zero unwanted diff lines.
Last verified against repo: 2026-11-28 (apps/web/README.md)View source doc on GitHub(opens in new tab)