How to update your pinned NodeJS package manager (pnpm, yarn, ...)

Posted . Visible to the public.

If your package.json contains a packageManager entry, it likely also contains a version that pins your package manager. Example:

"packageManager": "pnpm@11.7.0+sha512.19cc852c120c7125760f2443ee6be0ca5b40f9f50598de1a09a1f177503e010e57c23c77646e01e761de59bf874fb22a3398c33ab9691fc13eb946b6f0f4d620"

To update that, you need to instruct your package manager manager to bump the version.
For example, if you're using pnpm through corepack:

corepack use pnpm@latest

(Note: You can also specify a version, like corepack use pnpm@11.16.0.)

This will install the requested version of that package manager, and adjust your package.json. Example:

"packageManager": "pnpm@11.16.0+sha512.b767e9a98fc87aec0f42daefcd0e84941c2cdb45d73c4e1e68860fb2bdfdbe032ab592105479e5e05c237f740c8a5ffdbbb52385797ddc2296745a1bbb883e8d"
Profile picture of Arne Hartherz
Arne Hartherz
Last edit
Arne Hartherz
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2026-07-23 06:32)