Deployment fails on Cloudflare after Nuxt 4.4.7 upgrade #35282
-
EnvironmentFrom Cloudflare logDetected the following tools from environment: npm@10.9.2, nodejs@22.16.0 2026-06-05T07:38:10.219711Z Installing project dependencies: npm clean-install --progress=false 2026-06-05T07:38:21.273136Z npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me 2026-06-05T07:38:21.448244Z npm warn deprecated vue-i18n@10.0.8: v9 and v10 no longer supported. please migrate to v11. about maintenance status, see https://vue-i18n.intlify.dev/guide/maintenance.html 2026-06-05T07:38:27.167121Z 2026-06-05T07:38:27.167463Z > postinstall 2026-06-05T07:38:27.1676Z > nuxt prepare 2026-06-05T07:38:27.167698Z 2026-06-05T07:38:27.907137Z [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. 2026-06-05T07:38:27.907463Z at node_modules/oxc-parser/src-js/bindings.js:575:11 2026-06-05T07:38:27.907581Z at ModuleJob.run (node:internal/modules/esm/module_job:274:25) 2026-06-05T07:38:27.907759Z at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26) 2026-06-05T07:38:27.907827Z at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:919:23) 2026-06-05T07:38:27.907895Z at async Object.run (node_modules/@nuxt/cli/dist/prepare-DZj9Ie1E.mjs:29:16) 2026-06-05T07:38:27.907959Z at async runCommand (node_modules/citty/dist/index.mjs:228:47) 2026-06-05T07:38:27.908016Z at async runCommand (node_modules/citty/dist/index.mjs:217:5) 2026-06-05T07:38:27.908069Z at async runMain (node_modules/citty/dist/index.mjs:394:10) 2026-06-05T07:38:27.908115Z 2026-06-05T07:38:27.908167Z [cause]: Cannot find module '@oxc-parser/binding-linux-x64-gnu' 2026-06-05T07:38:27.908212Z Require stack: 2026-06-05T07:38:27.908254Z - /opt/buildhome/repo/node_modules/oxc-parser/src-js/bindings.js 2026-06-05T07:38:27.908296Z at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15) 2026-06-05T07:38:27.908364Z at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19) 2026-06-05T07:38:27.908417Z at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22) 2026-06-05T07:38:27.908458Z at Function._load (node:internal/modules/cjs/loader:1211:37) 2026-06-05T07:38:27.908497Z at TracingChannel.traceSync (node:diagnostics_channel:322:14) 2026-06-05T07:38:27.908557Z at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) 2026-06-05T07:38:27.908608Z at Module.require (node:internal/modules/cjs/loader:1487:12) 2026-06-05T07:38:27.908665Z at require (node:internal/modules/helpers:135:16) 2026-06-05T07:38:27.908703Z at requireNative (node_modules/oxc-parser/src-js/bindings.js:292:27) 2026-06-05T07:38:27.908747Z at node_modules/oxc-parser/src-js/bindings.js:530:17 2026-06-05T07:38:27.908795Z 2026-06-05T07:38:27.908843Z [cause]: Cannot find module './parser.linux-x64-gnu.node' 2026-06-05T07:38:27.908886Z Require stack: 2026-06-05T07:38:27.908944Z - /opt/buildhome/repo/node_modules/oxc-parser/src-js/bindings.js 2026-06-05T07:38:27.908997Z at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15) 2026-06-05T07:38:27.909093Z at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19) 2026-06-05T07:38:27.909149Z at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22) 2026-06-05T07:38:27.9092Z at Function._load (node:internal/modules/cjs/loader:1211:37) 2026-06-05T07:38:27.909265Z at TracingChannel.traceSync (node:diagnostics_channel:322:14) 2026-06-05T07:38:27.909327Z at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) 2026-06-05T07:38:27.909398Z at Module.require (node:internal/modules/cjs/loader:1487:12) 2026-06-05T07:38:27.909441Z at require (node:internal/modules/helpers:135:16) 2026-06-05T07:38:27.909617Z at requireNative (node_modules/oxc-parser/src-js/bindings.js:287:18) 2026-06-05T07:38:27.909688Z at node_modules/oxc-parser/src-js/bindings.js:530:17 2026-06-05T07:38:27.909785Z 2026-06-05T07:38:27.955936Z npm error code 1 2026-06-05T07:38:27.956749Z npm error path /opt/buildhome/repo 2026-06-05T07:38:27.956981Z npm error command failed 2026-06-05T07:38:27.957073Z npm error command sh -c nuxt prepare 2026-06-05T07:38:27.957153Z npm error A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2026-06-05T07_38_10_785Z-debug-0.log 2026-06-05T07:38:28.070869Z Error: Exit with error code: 1 2026-06-05T07:38:28.071461Z at ChildProcess. (/snapshot/dist/run-build.js) 2026-06-05T07:38:28.071531Z at Object.onceWrapper (node:events:652:26) 2026-06-05T07:38:28.07159Z at ChildProcess.emit (node:events:537:28) 2026-06-05T07:38:28.071694Z at ChildProcess._handle.onexit (node:internal/child_process:291:12) 2026-06-05T07:38:28.08007Z Failed: build command exited with code: 1 2026-06-05T07:38:28.891818Z Failed: error occurred while running build command ReproductionUpgrade with Describe the bugEverything was working, I just upgraded and the deployment failed Additional contextReverting back to Logs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is not a Nuxt bug. The log tells you the issue and the solution: |
Beta Was this translation helpful? Give feedback.
This is not a Nuxt bug. The log tells you the issue and the solution: