You are using Node.js 18.20.4. For Next.js, Node.js version ">=20.9.0" is required.
tsurg
HOBBYOP

a month ago

deployment ID: 09390767-aaa2-49b1-8a20-08963d56aced
I ran bun create-next-app and without any changes, and I got this error:

bun install --frozen-lockfile
3s
bun install v1.3.1 (89fa0f34)
/bin/sh: 1: npm: not found
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module 'node-linux-x64/package.json'
Require stack:
- /app/node_modules/node/installArchSpecificPackage.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Function.resolve (node:internal/modules/helpers:188:19)
    at ChildProcess. (/app/node_modules/node-bin-setup/index.js:20:27)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:303:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/app/node_modules/node/installArchSpecificPackage.js' ]
}
Node.js v18.20.4

error: preinstall script from "node" exited with 1
Solved$10 Bounty

1 Replies

tsurg
HOBBYOP

a month ago

I fixed this error by adding

"packageManager": "bun@1.3.1^" //use latest version

to the end of my package.json.


tsurg
HOBBYOP

a month ago

(check out `49f634e0-ab82-4f5f-bb68-cfffeb3e861e`)


Status changed to Solved brody about 1 month ago


irazvan2745
PRO

a month ago

i wonder who told you that lol


tsurg
HOBBYOP

a month ago

!s


irazvan2745
PRO

a month ago

hi @Brody, do i get the bounty?


brody
EMPLOYEE

a month ago

No


brody
EMPLOYEE

a month ago

!s


Loading...