You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I finished building a website with the the cloudflare cli for pages choosing nextjs as framework but upon building on the the cloudflare pages application, i got the error to update the node version .
error statement below:
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.
i have attached the build error screenshot.
Please provide any relevant error logs
2025-01-23T14:52:13.199143Z Cloning repository...
2025-01-23T14:52:14.25473Z From https://github.com/jessequartey/almondtree
2025-01-23T14:52:14.255209Z * branch 811c59496a7eb9acc4f96071d528c0724537650a -> FETCH_HEAD
2025-01-23T14:52:14.255324Z
2025-01-23T14:52:14.285389Z HEAD is now at 811c594 full dump
2025-01-23T14:52:14.285752Z
2025-01-23T14:52:14.363694Z
2025-01-23T14:52:14.364191Z Using v2 root directory strategy
2025-01-23T14:52:14.385653Z Success: Finished cloning repository files
2025-01-23T14:52:16.015133Z Checking for configuration in a Wrangler configuration file (BETA)
2025-01-23T14:52:16.015893Z
2025-01-23T14:52:16.016207Z Found wrangler.json file. Reading build configuration...
2025-01-23T14:52:16.021781Z pages_build_output_dir: .vercel/output/static
2025-01-23T14:52:16.021951Z Build environment variables: (none found)
2025-01-23T14:52:16.121426Z Successfully read wrangler.toml file.
2025-01-23T14:52:16.264491Z Detected the following tools from environment: [email protected], [email protected]
2025-01-23T14:52:17.026205Z Installing project dependencies: pnpm install
2025-01-23T14:52:17.674736Z WARN Ignoring not compatible lockfile at /opt/buildhome/repo/pnpm-lock.yaml
2025-01-23T14:52:17.874869Z Progress: resolved 1, reused 0, downloaded 0, added 0
2025-01-23T14:52:18.645203Z WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
2025-01-23T14:52:18.899528Z Progress: resolved 20, reused 0, downloaded 16, added 0
2025-01-23T14:52:20.052961Z Progress: resolved 25, reused 0, downloaded 24, added 0
2025-01-23T14:52:21.053403Z Progress: resolved 125, reused 0, downloaded 106, added 0
2025-01-23T14:52:22.093492Z Progress: resolved 166, reused 0, downloaded 141, added 0
2025-01-23T14:52:23.097202Z Progress: resolved 224, reused 0, downloaded 175, added 0
2025-01-23T14:52:23.31542Z WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2025-01-23T14:52:24.103042Z Progress: resolved 321, reused 0, downloaded 244, added 0
2025-01-23T14:52:25.102958Z Progress: resolved 389, reused 0, downloaded 297, added 0
2025-01-23T14:52:25.964109Z WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
2025-01-23T14:52:26.103049Z Progress: resolved 495, reused 0, downloaded 373, added 0
2025-01-23T14:52:26.185706Z WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2025-01-23T14:52:26.527672Z WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2025-01-23T14:52:26.949957Z WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2025-01-23T14:52:27.105128Z Progress: resolved 699, reused 0, downloaded 584, added 0
2025-01-23T14:52:27.245529Z Packages: +612
2025-01-23T14:52:27.24576Z ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2025-01-23T14:52:28.105518Z Progress: resolved 700, reused 0, downloaded 613, added 584
2025-01-23T14:52:28.771901Z Progress: resolved 700, reused 0, downloaded 613, added 612, done
2025-01-23T14:52:28.945113Z .../[email protected]/node_modules/esbuild postinstall$ node install.js
2025-01-23T14:52:28.945958Z .../[email protected]/node_modules/esbuild postinstall$ node install.js
2025-01-23T14:52:28.946762Z .../[email protected]/node_modules/esbuild postinstall$ node install.js
2025-01-23T14:52:29.12502Z .../node_modules/workerd postinstall$ node install.js
2025-01-23T14:52:29.1674Z .../[email protected]/node_modules/esbuild postinstall: Done
2025-01-23T14:52:29.17483Z .../[email protected]/node_modules/esbuild postinstall: Done
2025-01-23T14:52:29.216078Z .../[email protected]/node_modules/esbuild postinstall: Done
2025-01-23T14:52:29.25031Z .../node_modules/workerd postinstall: Done
2025-01-23T14:52:29.822738Z .../[email protected]/node_modules/sharp install$ node install/check
2025-01-23T14:52:29.949403Z .../[email protected]/node_modules/sharp install: Done
2025-01-23T14:52:34.012017Z
2025-01-23T14:52:34.012248Z dependencies:
2025-01-23T14:52:34.012385Z + @heroicons/react 2.2.0
2025-01-23T14:52:34.012482Z + @radix-ui/react-slot 1.1.1
2025-01-23T14:52:34.012612Z + class-variance-authority 0.7.1
2025-01-23T14:52:34.012815Z + clsx 2.1.1
2025-01-23T14:52:34.012932Z + framer-motion 12.0.1
2025-01-23T14:52:34.013041Z + lucide-react 0.473.0
2025-01-23T14:52:34.013155Z + next 15.1.5 (15.1.6 is available)
2025-01-23T14:52:34.013249Z + react 19.0.0
2025-01-23T14:52:34.01336Z + react-dom 19.0.0
2025-01-23T14:52:34.013518Z + tailwind-merge 2.6.0
2025-01-23T14:52:34.013648Z + tailwindcss-animate 1.0.7
2025-01-23T14:52:34.01375Z + tailwindcss-gradients 3.0.0 deprecated
2025-01-23T14:52:34.014509Z
2025-01-23T14:52:34.014603Z devDependencies:
2025-01-23T14:52:34.014776Z + @cloudflare/next-on-pages 1.13.7
2025-01-23T14:52:34.014868Z + @cloudflare/workers-types 4.20250121.0
2025-01-23T14:52:34.014961Z + @eslint/eslintrc 3.2.0
2025-01-23T14:52:34.015084Z + @types/node 20.17.16 (22.10.9 is available)
2025-01-23T14:52:34.015198Z + @types/react 19.0.8
2025-01-23T14:52:34.015296Z + @types/react-dom 19.0.3
2025-01-23T14:52:34.015388Z + eslint 9.18.0
2025-01-23T14:52:34.015459Z + eslint-config-next 15.1.5 (15.1.6 is available)
2025-01-23T14:52:34.015532Z + postcss 8.5.1
2025-01-23T14:52:34.015707Z + tailwindcss 3.4.17 (4.0.0 is available)
2025-01-23T14:52:34.015821Z + typescript 5.7.3
2025-01-23T14:52:34.015938Z + vercel 39.3.0
2025-01-23T14:52:34.016047Z + wrangler 3.105.0
2025-01-23T14:52:34.016159Z
2025-01-23T14:52:34.016263Z Done in 16.6s
2025-01-23T14:52:34.14943Z Executing user command: npx @cloudflare/next-on-pages@1
2025-01-23T14:52:36.805417Z ⚡️ @cloudflare/next-on-pages CLI v.1.13.7
2025-01-23T14:52:37.129737Z ⚡️ Detected Package Manager: npm (9.6.7)
2025-01-23T14:52:37.130045Z ⚡️ Preparing project...
2025-01-23T14:52:37.131506Z
2025-01-23T14:52:37.131726Z ⚡️ The project is set up for pnpm but it is currently being run via npm this might lead to build errors, please be sure to use the same package manager your project uses when running @cloudflare/next-on-pages
2025-01-23T14:52:37.131929Z
2025-01-23T14:52:37.133864Z ⚡️ Project is ready
2025-01-23T14:52:37.134015Z ⚡️ Building project...
2025-01-23T14:52:38.021237Z ▲ Vercel CLI 39.3.0
2025-01-23T14:52:38.030384Z ▲ > NOTE: The Vercel CLI now collects telemetry regarding usage of the CLI.
2025-01-23T14:52:38.030542Z ▲ > This information is used to shape the CLI roadmap and prioritize features.
2025-01-23T14:52:38.030689Z ▲ > You can learn more, including how to opt-out if you'd not like to participate in this program, by visiting the following URL:
2025-01-23T14:52:38.030783Z ▲ > https://vercel.com/docs/cli/about-telemetry
2025-01-23T14:52:38.345388Z ▲ Detected pnpm-lock.yaml version 6 generated by [email protected]
2025-01-23T14:52:38.364031Z ▲ Installing dependencies...
2025-01-23T14:52:38.880711Z ▲ Lockfile is up to date, resolution step is skipped
2025-01-23T14:52:38.975444Z ▲ Already up to date
2025-01-23T14:52:40.379117Z ▲
2025-01-23T14:52:40.394262Z ▲ Done in 1.9s
2025-01-23T14:52:40.428274Z ▲ Detected Next.js version: 15.1.5
2025-01-23T14:52:40.443952Z ▲ Running "pnpm run build"
2025-01-23T14:52:40.868164Z ▲ > [email protected] build /opt/buildhome/repo
2025-01-23T14:52:40.868376Z ▲ > next build
2025-01-23T14:52:41.022552Z ▲ 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.
2025-01-23T14:52:41.029442Z ▲ ELIFECYCLE Command failed with exit code 1.
2025-01-23T14:52:41.06624Z ▲ Error: Command "pnpm run build" exited with 1
2025-01-23T14:52:41.191683Z
2025-01-23T14:52:41.192095Z ⚡️ The Vercel build (npx vercel build) command failed. For more details see the Vercel logs above.
2025-01-23T14:52:41.192384Z ⚡️ If you need help solving the issue, refer to the Vercel or Next.js documentation or their repositories.
2025-01-23T14:52:41.192477Z
2025-01-23T14:52:41.212262Z Failed: Error while executing user command. Exited with error code: 1
2025-01-23T14:52:41.221657Z Failed: build command exited with code: 1
2025-01-23T14:52:41.973843Z Failed: error occurred while running build command
The text was updated successfully, but these errors were encountered:
Which Cloudflare product(s) does this pertain to?
Pages
What versions are you using?
2.37.2
What operating system and version are you using?
Linux Mint 22
Please provide a link to a minimal reproduction
No response
Describe the Bug
I finished building a website with the the cloudflare cli for pages choosing nextjs as framework but upon building on the the cloudflare pages application, i got the error to update the node version .
error statement below:
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.
i have attached the build error screenshot.
Please provide any relevant error logs
2025-01-23T14:52:13.199143Z Cloning repository...
2025-01-23T14:52:14.25473Z From https://github.com/jessequartey/almondtree
2025-01-23T14:52:14.255209Z * branch 811c59496a7eb9acc4f96071d528c0724537650a -> FETCH_HEAD
2025-01-23T14:52:14.255324Z
2025-01-23T14:52:14.285389Z HEAD is now at 811c594 full dump
2025-01-23T14:52:14.285752Z
2025-01-23T14:52:14.363694Z
2025-01-23T14:52:14.364191Z Using v2 root directory strategy
2025-01-23T14:52:14.385653Z Success: Finished cloning repository files
2025-01-23T14:52:16.015133Z Checking for configuration in a Wrangler configuration file (BETA)
2025-01-23T14:52:16.015893Z
2025-01-23T14:52:16.016207Z Found wrangler.json file. Reading build configuration...
2025-01-23T14:52:16.021781Z pages_build_output_dir: .vercel/output/static
2025-01-23T14:52:16.021951Z Build environment variables: (none found)
2025-01-23T14:52:16.121426Z Successfully read wrangler.toml file.
2025-01-23T14:52:16.264491Z Detected the following tools from environment: [email protected], [email protected]
2025-01-23T14:52:17.026205Z Installing project dependencies: pnpm install
2025-01-23T14:52:17.674736Z WARN Ignoring not compatible lockfile at /opt/buildhome/repo/pnpm-lock.yaml
2025-01-23T14:52:17.874869Z Progress: resolved 1, reused 0, downloaded 0, added 0
2025-01-23T14:52:18.645203Z WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
2025-01-23T14:52:18.899528Z Progress: resolved 20, reused 0, downloaded 16, added 0
2025-01-23T14:52:20.052961Z Progress: resolved 25, reused 0, downloaded 24, added 0
2025-01-23T14:52:21.053403Z Progress: resolved 125, reused 0, downloaded 106, added 0
2025-01-23T14:52:22.093492Z Progress: resolved 166, reused 0, downloaded 141, added 0
2025-01-23T14:52:23.097202Z Progress: resolved 224, reused 0, downloaded 175, added 0
2025-01-23T14:52:23.31542Z WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
2025-01-23T14:52:24.103042Z Progress: resolved 321, reused 0, downloaded 244, added 0
2025-01-23T14:52:25.102958Z Progress: resolved 389, reused 0, downloaded 297, added 0
2025-01-23T14:52:25.964109Z WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
2025-01-23T14:52:26.103049Z Progress: resolved 495, reused 0, downloaded 373, added 0
2025-01-23T14:52:26.185706Z WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2025-01-23T14:52:26.527672Z WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2025-01-23T14:52:26.949957Z WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2025-01-23T14:52:27.105128Z Progress: resolved 699, reused 0, downloaded 584, added 0
2025-01-23T14:52:27.245529Z Packages: +612
2025-01-23T14:52:27.24576Z ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2025-01-23T14:52:28.105518Z Progress: resolved 700, reused 0, downloaded 613, added 584
2025-01-23T14:52:28.771901Z Progress: resolved 700, reused 0, downloaded 613, added 612, done
2025-01-23T14:52:28.945113Z .../[email protected]/node_modules/esbuild postinstall$ node install.js
2025-01-23T14:52:28.945958Z .../[email protected]/node_modules/esbuild postinstall$ node install.js
2025-01-23T14:52:28.946762Z .../[email protected]/node_modules/esbuild postinstall$ node install.js
2025-01-23T14:52:29.12502Z .../node_modules/workerd postinstall$ node install.js
2025-01-23T14:52:29.1674Z .../[email protected]/node_modules/esbuild postinstall: Done
2025-01-23T14:52:29.17483Z .../[email protected]/node_modules/esbuild postinstall: Done
2025-01-23T14:52:29.216078Z .../[email protected]/node_modules/esbuild postinstall: Done
2025-01-23T14:52:29.25031Z .../node_modules/workerd postinstall: Done
2025-01-23T14:52:29.822738Z .../[email protected]/node_modules/sharp install$ node install/check
2025-01-23T14:52:29.949403Z .../[email protected]/node_modules/sharp install: Done
2025-01-23T14:52:34.012017Z
2025-01-23T14:52:34.012248Z dependencies:
2025-01-23T14:52:34.012385Z + @heroicons/react 2.2.0
2025-01-23T14:52:34.012482Z + @radix-ui/react-slot 1.1.1
2025-01-23T14:52:34.012612Z + class-variance-authority 0.7.1
2025-01-23T14:52:34.012815Z + clsx 2.1.1
2025-01-23T14:52:34.012932Z + framer-motion 12.0.1
2025-01-23T14:52:34.013041Z + lucide-react 0.473.0
2025-01-23T14:52:34.013155Z + next 15.1.5 (15.1.6 is available)
2025-01-23T14:52:34.013249Z + react 19.0.0
2025-01-23T14:52:34.01336Z + react-dom 19.0.0
2025-01-23T14:52:34.013518Z + tailwind-merge 2.6.0
2025-01-23T14:52:34.013648Z + tailwindcss-animate 1.0.7
2025-01-23T14:52:34.01375Z + tailwindcss-gradients 3.0.0 deprecated
2025-01-23T14:52:34.014509Z
2025-01-23T14:52:34.014603Z devDependencies:
2025-01-23T14:52:34.014776Z + @cloudflare/next-on-pages 1.13.7
2025-01-23T14:52:34.014868Z + @cloudflare/workers-types 4.20250121.0
2025-01-23T14:52:34.014961Z + @eslint/eslintrc 3.2.0
2025-01-23T14:52:34.015084Z + @types/node 20.17.16 (22.10.9 is available)
2025-01-23T14:52:34.015198Z + @types/react 19.0.8
2025-01-23T14:52:34.015296Z + @types/react-dom 19.0.3
2025-01-23T14:52:34.015388Z + eslint 9.18.0
2025-01-23T14:52:34.015459Z + eslint-config-next 15.1.5 (15.1.6 is available)
2025-01-23T14:52:34.015532Z + postcss 8.5.1
2025-01-23T14:52:34.015707Z + tailwindcss 3.4.17 (4.0.0 is available)
2025-01-23T14:52:34.015821Z + typescript 5.7.3
2025-01-23T14:52:34.015938Z + vercel 39.3.0
2025-01-23T14:52:34.016047Z + wrangler 3.105.0
2025-01-23T14:52:34.016159Z
2025-01-23T14:52:34.016263Z Done in 16.6s
2025-01-23T14:52:34.14943Z Executing user command: npx @cloudflare/next-on-pages@1
2025-01-23T14:52:36.805417Z ⚡️ @cloudflare/next-on-pages CLI v.1.13.7
2025-01-23T14:52:37.129737Z ⚡️ Detected Package Manager: npm (9.6.7)
2025-01-23T14:52:37.130045Z ⚡️ Preparing project...
2025-01-23T14:52:37.131506Z
2025-01-23T14:52:37.131726Z ⚡️ The project is set up for pnpm but it is currently being run via npm this might lead to build errors, please be sure to use the same package manager your project uses when running @cloudflare/next-on-pages
2025-01-23T14:52:37.131929Z
2025-01-23T14:52:37.133864Z ⚡️ Project is ready
2025-01-23T14:52:37.134015Z ⚡️ Building project...
2025-01-23T14:52:38.021237Z ▲ Vercel CLI 39.3.0
2025-01-23T14:52:38.030384Z ▲ > NOTE: The Vercel CLI now collects telemetry regarding usage of the CLI.
2025-01-23T14:52:38.030542Z ▲ > This information is used to shape the CLI roadmap and prioritize features.
2025-01-23T14:52:38.030689Z ▲ > You can learn more, including how to opt-out if you'd not like to participate in this program, by visiting the following URL:
2025-01-23T14:52:38.030783Z ▲ > https://vercel.com/docs/cli/about-telemetry
2025-01-23T14:52:38.345388Z ▲ Detected
pnpm-lock.yaml
version 6 generated by [email protected]2025-01-23T14:52:38.364031Z ▲ Installing dependencies...
2025-01-23T14:52:38.880711Z ▲ Lockfile is up to date, resolution step is skipped
2025-01-23T14:52:38.975444Z ▲ Already up to date
2025-01-23T14:52:40.379117Z ▲
2025-01-23T14:52:40.394262Z ▲ Done in 1.9s
2025-01-23T14:52:40.428274Z ▲ Detected Next.js version: 15.1.5
2025-01-23T14:52:40.443952Z ▲ Running "pnpm run build"
2025-01-23T14:52:40.868164Z ▲ > [email protected] build /opt/buildhome/repo
2025-01-23T14:52:40.868376Z ▲ > next build
2025-01-23T14:52:41.022552Z ▲ 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.
2025-01-23T14:52:41.029442Z ▲ ELIFECYCLE Command failed with exit code 1.
2025-01-23T14:52:41.06624Z ▲ Error: Command "pnpm run build" exited with 1
2025-01-23T14:52:41.191683Z
2025-01-23T14:52:41.192095Z ⚡️ The Vercel build (
npx vercel build
) command failed. For more details see the Vercel logs above.2025-01-23T14:52:41.192384Z ⚡️ If you need help solving the issue, refer to the Vercel or Next.js documentation or their repositories.
2025-01-23T14:52:41.192477Z
2025-01-23T14:52:41.212262Z Failed: Error while executing user command. Exited with error code: 1
2025-01-23T14:52:41.221657Z Failed: build command exited with code: 1
2025-01-23T14:52:41.973843Z Failed: error occurred while running build command
The text was updated successfully, but these errors were encountered: