Hey there! I’m not sure if this is the right place for this question, so please redirect me if not!
How often does the Node version for Cloudflare Pages get updated? I’m using it to host my website, and one of my dependencies requires Node v12.20 (Pages is on Node v12.18), so I’ve been unable to deploy my website.
On a related note, would it be possible to use Node 14 for my build instead?
Some Workers dev team members hang out on their Discord server and can probably tell you:
You can change the node version with the
NODE_VERSION env variable. I’m not sure how often the team plans to update the default version considering it can cause people’s builds to suddenly break.
The recommended way is just to always specify the version you want in the environment variable.
Oh really, I didn’t realize I could SET this env var as well, reading the documentation.
I just set it to 16.7.0 and it worked, thanks so much!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.