cloudflare / cloudflare/developer-platform

🐛 BUG:When building on Cloudflare Pages, I have set the environment variable NODE_VERSION=22.14.0, but it doesn't take effect. The logs still indicate that the build environment is fixed at Node.js version 18.17.1, causing the build to fail.

Open
#45 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Which Cloudflare product(s) does this pertain to?

Pages

### What versions are you using?

C3

### What operating system and version are you using?

Windows 11

### Please provide a link to a minimal reproduction

_No response_

### Describe the Bug

When building on Cloudflare Pages, I have set the environment variable NODE_VERSION=22.14.0, but it doesn't take effect. The logs still indicate that the build environment is fixed at Node.js version 18.17.1, causing the build to fail.

3:23:38.403 | You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 \|\| ^19.8.0 \|\| >= 20.0.0" is required.
-- | --
13:23:38.423 | Failed: Error while executing user command. Exited with error code: 1
13:23:38.434 | Failed: build command exited with code: 1
13:23:39.680 | Failed: error occurred while running build command

### Please provide any relevant error logs

![Image](https://github.com/user-attachments/assets/1330ffa7-2744-422c-933a-5ce14b4c8c46)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.