# Workers - Pin your npm version in Workers Builds with packageManager

Publisher-attributed story with a reviewed brief or permitted publisher paragraph. The original publisher is responsible for the linked reporting.

- Publisher: Cloudflare Developers
- Category: Cloud
- Original publication time: 2026-10-23T00:00:00Z
- First observed by NexusTechWire: 2026-10-24T00:50:39Z
- Original source: https://developers.cloudflare.com/changelog/post/2026-10-23-workers-builds-pin-npm-version/
- NexusTechWire record: https://nexustechwire.com/news/news-473a82bb208e8907a4f7

## From the publisher

You can now choose the npm version that Workers Builds uses by setting the packageManager field in your package.json. Before the build installs dependencies, it installs the npm version you set, so a lockfile written by a newer npm version installs the same way in your build as it does locally. package.jsonjson\{ "packageManager": "npm@11.19.1" \} The packageManager field also sets the version of Yarn, pnpm, and Bun. Use an exact version, such as npm@11.19.1, not a range. Workers Builds does not use the engines.npm field to choose an npm version. For more information, refer to Package manager versions.

Source license: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Publisher excerpt shortened and converted to plain text. Original source license applies.

Read the full original: [Cloudflare Developers](https://developers.cloudflare.com/changelog/post/2026-10-23-workers-builds-pin-npm-version/)

This record does not reproduce the complete article or represent independent confirmation of every source claim.
