Juuullia
CDCloudflare Developers
•Created by Juuullia on 5/9/2024 in #pages-help
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!
4 replies