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 11 Replies
I fixed this error by adding
"packageManager": "bun@1.3.1^" //use latest versionto 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
brody
EMPLOYEE
a month ago
No
brody
EMPLOYEE
a month ago
!s