FYI, got the following error when deploying the repo on Cloudflare Pages.
Got it solved by specifying a more recent node version e.g. 24.11.1 in a .nvmrc file.
2025-12-08T13:37:57.965707Z Cloning repository...
2025-12-08T13:37:58.661272Z From https://github.com/tmlmt/my-pull-requests
2025-12-08T13:37:58.662115Z * branch dd3d1657b829277e63fa53f3c3111cc2a3aa8bc1 -> FETCH_HEAD
2025-12-08T13:37:58.662272Z
2025-12-08T13:37:58.693377Z HEAD is now at dd3d165 feat: add sorting (#20)
2025-12-08T13:37:58.693844Z
2025-12-08T13:37:58.776315Z
2025-12-08T13:37:58.776826Z Using v2 root directory strategy
2025-12-08T13:37:58.800466Z Success: Finished cloning repository files
2025-12-08T13:38:00.751922Z Checking for configuration in a Wrangler configuration file (BETA)
2025-12-08T13:38:00.752547Z
2025-12-08T13:38:01.853879Z No wrangler.toml file found. Continuing.
2025-12-08T13:38:03.026348Z Preparing yarn@3.6.3 for immediate activation...
2025-12-08T13:38:03.332754Z Preparing pnpm@8.7.1 for immediate activation...
2025-12-08T13:38:03.581956Z Detected the following tools from environment: pnpm@10.16.1, nodejs@18.17.1
2025-12-08T13:38:03.873547Z Preparing pnpm@10.16.1 for immediate activation...
2025-12-08T13:38:05.928237Z Installing project dependencies: pnpm install
2025-12-08T13:38:06.614901Z Lockfile is up to date, resolution step is skipped
2025-12-08T13:38:06.735492Z Progress: resolved 1, reused 0, downloaded 0, added 0
2025-12-08T13:38:06.933926Z Packages: +942
2025-12-08T13:38:06.934564Z ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2025-12-08T13:38:07.736073Z Progress: resolved 942, reused 0, downloaded 40, added 17
2025-12-08T13:38:08.7357Z Progress: resolved 942, reused 0, downloaded 196, added 130
2025-12-08T13:38:09.735804Z Progress: resolved 942, reused 0, downloaded 379, added 296
2025-12-08T13:38:10.736013Z Progress: resolved 942, reused 0, downloaded 571, added 468
2025-12-08T13:38:11.735779Z Progress: resolved 942, reused 0, downloaded 799, added 664
2025-12-08T13:38:12.735734Z Progress: resolved 942, reused 0, downloaded 940, added 856
2025-12-08T13:38:13.736339Z Progress: resolved 942, reused 0, downloaded 941, added 941
2025-12-08T13:38:14.736568Z Progress: resolved 942, reused 0, downloaded 942, added 941
2025-12-08T13:38:15.812969Z Progress: resolved 942, reused 0, downloaded 942, added 942
2025-12-08T13:38:15.813299Z Progress: resolved 942, reused 0, downloaded 942, added 942, done
2025-12-08T13:38:16.544671Z
2025-12-08T13:38:16.545262Z dependencies:
2025-12-08T13:38:16.545491Z + @iconify-json/lucide 1.2.68
2025-12-08T13:38:16.545605Z + @iconify-json/simple-icons 1.2.52
2025-12-08T13:38:16.545719Z + @nuxt/ui 4.0.0-alpha.1
2025-12-08T13:38:16.545855Z + @vercel/analytics 1.5.0
2025-12-08T13:38:16.545931Z + @vercel/speed-insights 1.2.0
2025-12-08T13:38:16.546033Z + @vueuse/core 13.9.0
2025-12-08T13:38:16.546259Z + @vueuse/nuxt 13.9.0
2025-12-08T13:38:16.546743Z + feed 5.1.0
2025-12-08T13:38:16.546871Z + nuxt 4.1.2
2025-12-08T13:38:16.547024Z + octokit 5.0.3
2025-12-08T13:38:16.547188Z + tailwindcss 4.1.13
2025-12-08T13:38:16.547312Z + ufo 1.6.1
2025-12-08T13:38:16.547435Z + vue 3.5.21
2025-12-08T13:38:16.547554Z + vue-router 4.5.1
2025-12-08T13:38:16.547658Z
2025-12-08T13:38:16.547773Z devDependencies:
2025-12-08T13:38:16.547906Z + @nuxt/eslint 1.9.0
2025-12-08T13:38:16.548033Z + eslint 9.35.0
2025-12-08T13:38:16.548157Z + typescript 5.9.2
2025-12-08T13:38:16.548268Z + vue-tsc 3.0.7
2025-12-08T13:38:16.548428Z
2025-12-08T13:38:16.548564Z ╭ Warning ─────────────────────────────────────────────────────────────────────╮
2025-12-08T13:38:16.548692Z │ │
2025-12-08T13:38:16.54887Z │ Ignored build scripts: @parcel/watcher, @tailwindcss/oxide, esbuild, │
2025-12-08T13:38:16.548987Z │ unrs-resolver, vue-demi. │
2025-12-08T13:38:16.549169Z │ Run "pnpm approve-builds" to pick which dependencies should be allowed │
2025-12-08T13:38:16.5493Z │ to run scripts. │
2025-12-08T13:38:16.549409Z │ │
2025-12-08T13:38:16.549548Z ╰──────────────────────────────────────────────────────────────────────────────╯
2025-12-08T13:38:16.549753Z
2025-12-08T13:38:16.557322Z . postinstall$ nuxi prepare
2025-12-08T13:38:17.461721Z . postinstall: [error] Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
2025-12-08T13:38:17.46238Z . postinstall: at Object.<anonymous> (node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js:393:11)
2025-12-08T13:38:17.462636Z . postinstall: at Module._compile (node:internal/modules/cjs/loader:1256:14)
2025-12-08T13:38:17.462733Z . postinstall: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
2025-12-08T13:38:17.46295Z . postinstall: at Module.load (node:internal/modules/cjs/loader:1119:32)
2025-12-08T13:38:17.463207Z . postinstall: at Module._load (node:internal/modules/cjs/loader:960:12)
2025-12-08T13:38:17.463338Z . postinstall: at Module.require (node:internal/modules/cjs/loader:1143:19)
2025-12-08T13:38:17.463511Z . postinstall: at require (node:internal/modules/cjs/helpers:121:18)
2025-12-08T13:38:17.463593Z . postinstall: at Object.<anonymous> (node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/index.js:3:18)
2025-12-08T13:38:17.463729Z . postinstall: at Module._compile (node:internal/modules/cjs/loader:1256:14)
2025-12-08T13:38:17.463901Z . postinstall: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
2025-12-08T13:38:17.464027Z . postinstall: [cause]: [ { Error: Cannot find module './parser.linux-x64-gnu.node'
2025-12-08T13:38:17.464344Z . postinstall: Require stack:
2025-12-08T13:38:17.464569Z . postinstall: - /opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js
2025-12-08T13:38:17.464739Z . postinstall: at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
2025-12-08T13:38:17.464885Z . postinstall: at Module._load (node:internal/modules/cjs/loader:922:27)
2025-12-08T13:38:17.46497Z . postinstall: at Module.require (node:internal/modules/cjs/loader:1143:19)
2025-12-08T13:38:17.465123Z . postinstall: at require (node:internal/modules/cjs/helpers:121:18)
2025-12-08T13:38:17.465264Z . postinstall: at requireNative (/opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js:213:18)
2025-12-08T13:38:17.465415Z . postinstall: at Object.<anonymous> (/opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js:362:17)
2025-12-08T13:38:17.465528Z . postinstall: at Module._compile (node:internal/modules/cjs/loader:1256:14)
2025-12-08T13:38:17.465667Z . postinstall: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
2025-12-08T13:38:17.465885Z . postinstall: at Module.load (node:internal/modules/cjs/loader:1119:32)
2025-12-08T13:38:17.466014Z . postinstall: at Module._load (node:internal/modules/cjs/loader:960:12)
2025-12-08T13:38:17.466122Z . postinstall: code: 'MODULE_NOT_FOUND',
2025-12-08T13:38:17.466297Z . postinstall: requireStack:
2025-12-08T13:38:17.466403Z . postinstall: [ '/opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js' ] },
2025-12-08T13:38:17.466508Z . postinstall: { Error: Cannot find module '@oxc-parser/binding-linux-x64-gnu'
2025-12-08T13:38:17.466606Z . postinstall: Require stack:
2025-12-08T13:38:17.466723Z . postinstall: - /opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js
2025-12-08T13:38:17.466858Z . postinstall: at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
2025-12-08T13:38:17.466965Z . postinstall: at Module._load (node:internal/modules/cjs/loader:922:27)
2025-12-08T13:38:17.467094Z . postinstall: at Module.require (node:internal/modules/cjs/loader:1143:19)
2025-12-08T13:38:17.467193Z . postinstall: at require (node:internal/modules/cjs/helpers:121:18)
2025-12-08T13:38:17.467292Z . postinstall: at requireNative (/opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js:218:18)
2025-12-08T13:38:17.467383Z . postinstall: at Object.<anonymous> (/opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js:362:17)
2025-12-08T13:38:17.467472Z . postinstall: at Module._compile (node:internal/modules/cjs/loader:1256:14)
2025-12-08T13:38:17.467562Z . postinstall: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
2025-12-08T13:38:17.467654Z . postinstall: at Module.load (node:internal/modules/cjs/loader:1119:32)
2025-12-08T13:38:17.467745Z . postinstall: at Module._load (node:internal/modules/cjs/loader:960:12)
2025-12-08T13:38:17.467862Z . postinstall: code: 'MODULE_NOT_FOUND',
2025-12-08T13:38:17.467958Z . postinstall: requireStack:
2025-12-08T13:38:17.468068Z . postinstall: [ '/opt/buildhome/repo/node_modules/.pnpm/oxc-parser@0.87.0/node_modules/oxc-parser/bindings.js' ] } ]
2025-12-08T13:38:17.468197Z . postinstall:
2025-12-08T13:38:17.468293Z . postinstall: [error] Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
2025-12-08T13:38:17.470916Z . postinstall: Failed
2025-12-08T13:38:17.565767Z ELIFECYCLE Command failed with exit code 1.
2025-12-08T13:38:17.617772Z Error: Exit with error code: 1
2025-12-08T13:38:17.618098Z at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
2025-12-08T13:38:17.618788Z at Object.onceWrapper (node:events:652:26)
2025-12-08T13:38:17.618888Z at ChildProcess.emit (node:events:537:28)
2025-12-08T13:38:17.61917Z at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2025-12-08T13:38:17.63036Z Failed: build command exited with code: 1
2025-12-08T13:38:19.058085Z Failed: error occurred while running build command
FYI, got the following error when deploying the repo on Cloudflare Pages.
Got it solved by specifying a more recent node version e.g. 24.11.1 in a
.nvmrcfile.Log