How can I override the npm version?

Hi, I know you can use the NODE_VERSION to change the node version but my build won't pass because it needs a certain npm version.
From the website, there's no environment variable listed for npm:https://developers.cloudflare.com/pages/configuration/language-support-and-tools/

The website also mentioned "We are aware of some outstanding issues with the v2 build system that we intend on fixing: Detecting Node.js and package managers from package.json -> "engines".
". I've tried specifying the npm version through package.json->"engines" but this is also not working.

Thank you!
Cloudflare Docs
Cloudflare Pages’ build environment has broad support for a variety of languages, such as Ruby, Node.js, Python, PHP, and Go.
Was this page helpful?