cloudflare / cloudflare/workerd

Error when installing packages

Open
#320 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

# Command:
```
apk add --no-cache libc6-compat gcompat libunwind
pnpm install
```
package.json
```json
{
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.0",
"@cloudflare/workerd-linux-64": "^1.20230115.0",
"@cloudflare/workers-types": "^4.20230115.0",
"@miniflare/tre": "3.0.0-next.1",
"@swc/cli": "^0.1.59",
"@swc/core": "^1.3.29",
"@types/jest": "29.4.0",
"@types/lodash": "^4.14.191",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"better-sqlite3": "8.0.1",
"cspell": "6.19.2",
"eslint": "^8.32.0",
"graphql-upload": "^16.0.2",
"jest": "29.4.0",
"jest-junit": "15.0.0",
"lerna": "^6.4.1",
"miniflare": "^2.11.0",
"prettier": "2.8.3",
"swc-loader": "^0.2.3",
"ts-jest": "29.0.5",
"typescript": "^4.9.4",
"vitest": "^0.28.2",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^5.0.1",
"wrangler": "^2.8.1"
},
"dependencies": {
"@pothos/core": "^3.24.0",
"@pothos/plugin-authz": "^3.5.7",
"@pothos/plugin-errors": "^3.10.0",
"@pothos/plugin-mocks": "^3.7.7",
"@pothos/plugin-relay": "^3.33.1",
"@pothos/plugin-simple-objects": "^3.6.7",
"@pothos/plugin-validation": "^3.8.7",
"graphql": "^16.6.0",
"graphql-scalars": "^1.20.1",
"graphql-yoga": "^3.3.0",
"kysely": "^0.23.4",
"kysely-d1": "^0.1.0",
"lodash": "^4.17.21",
"nanoid": "^4.0.0",
"util": "^0.12.5"
}
}
```

# Error
```
.../node_modules/better-sqlite3 install$ prebuild-install || node-gyp rebuild --release
.../node_modules/@parcel/watcher install$ node-gyp-build
.../node_modules/@parcel/watcher install: Done
.../node_modules/better-sqlite3 install: Done
.../node_modules/@swc/core postinstall$ node postinstall.js
.../esbuild@0.14.51/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.16.17/node_modules/esbuild postinstall$ node install.js
.../node_modules/workerd postinstall$ node install.js
.../node_modules/@swc/core postinstall: Done
.../esbuild@0.14.51/node_modules/esbuild postinstall: Done
.../esbuild@0.16.17/node_modules/esbuild postinstall: Done
.../node_modules/workerd postinstall: node:internal/errors:491
.../node_modules/workerd postinstall: ErrorCaptureStackTrace(err);
.../node_modules/workerd postinstall: ^
.../node_modules/workerd postinstall: Error: spawnSync /builds/project/project-worker/node_modules/.pnpm/workerd@1.20230115.0/node_modules/workerd/bin/workerd ENOBUFS
.../node_modules/workerd postinstall: at Object.spawnSync (node:internal/child_process:1110:20)
.../node_modules/workerd postinstall: at spawnSync (node:child_process:871:24)
.../node_modules/workerd postinstall: at Object.execFileSync (node:child_process:914:15)
.../node_modules/workerd postinstall: at validateBinaryVersion (/builds/project/project-worker/node_modules/.pnpm/workerd@1.20230115.0/node_modules/workerd/install.js:61:47)
.../node_modules/workerd postinstall: at /builds/project/project-worker/node_modules/.pnpm/workerd@1.20230115.0/node_modules/workerd/install.js:230:7 {
.../node_modules/workerd postinstall: errno: -105,
.../node_modules/workerd postinstall: code: 'ENOBUFS',
.../node_modules/workerd postinstall: syscall: 'spawnSync /builds/project/project-worker/node_modules/.pnpm/workerd@1.20230115.0/node_modules/workerd/bin/workerd',
.../node_modules/workerd postinstall: path: '/builds/project/project-worker/node_modules/.pnpm/workerd@1.20230115.0/node_modules/workerd/bin/workerd',
.../node_modules/workerd postinstall: spawnargs: [ '--version' ],
.../node_modules/workerd postinstall: error: [Circular *1],
.../node_modules/workerd postinstall: status: null,
.../node_modules/workerd postinstall: signal: 'SIGTERM',
.../node_modules/workerd postinstall: output: [
.../node_modules/workerd postinstall: null,
.../node_modules/workerd postinstall: Buffer(0) [Uint8Array] [],
.../node_modules/workerd postinstall: Buffer(1048675) [Uint8Array] [
.../node_modules/workerd postinstall: 69, 114, 114, 111, 114, 32, 108, 111, 97, 100, 105, 110,
.../node_modules/workerd postinstall: 103, 32, 115, 104, 97, 114, 101, 100, 32, 108, 105, 98,
.../node_modules/workerd postinstall: 114, 97, 114, 121, 32, 108, 105, 98, 99, 43, 43, 46,
.../node_modules/workerd postinstall: 115, 111, 46, 49, 58, 32, 78, 111, 32, 115, 117, 99,
.../node_modules/workerd postinstall: 104, 32, 102, 105, 108, 101, 32, 111, 114, 32, 100, 105,
.../node_modules/workerd postinstall: 114, 101, 99, 116, 111, 114, 121, 32, 40, 110, 101, 101,
.../node_modules/workerd postinstall: 100, 101, 100, 32, 98, 121, 32, 47, 98, 117, 105, 108,
.../node_modules/workerd postinstall: 100, 115, 47, 112, 111, 111, 108, 97, 114, 109, 121, 47,
.../node_modules/workerd postinstall: 112, 111, 111, 108,
.../node_modules/workerd postinstall: ... 1048575 more items
.../node_modules/workerd postinstall: ]
.../node_modules/workerd postinstall: ],
.../node_modules/workerd postinstall: pid: 103,
.../node_modules/workerd postinstall: stdout: Buffer(0) [Uint8Array] [],
.../node_modules/workerd postinstall: stderr: Buffer(1048675) [Uint8Array] [
.../node_modules/workerd postinstall: 69, 114, 114, 111, 114, 32, 108, 111, 97, 100, 105, 110,
.../node_modules/workerd postinstall: 103, 32, 115, 104, 97, 114, 101, 100, 32, 108, 105, 98,
.../node_modules/workerd postinstall: 114, 97, 114, 121, 32, 108, 105, 98, 99, 43, 43, 46,
.../node_modules/workerd postinstall: 115, 111, 46, 49, 58, 32, 78, 111, 32, 115, 117, 99,
.../node_modules/workerd postinstall: 104, 32, 102, 105, 108, 101, 32, 111, 114, 32, 100, 105,
.../node_modules/workerd postinstall: 114, 101, 99, 116, 111, 114, 121, 32, 40, 110, 101, 101,
.../node_modules/workerd postinstall: 100, 101, 100, 32, 98, 121, 32, 47, 98, 117, 105, 108,
.../node_modules/workerd postinstall: 100, 115, 47, 112, 111, 111, 108, 97, 114, 109, 121, 47,
.../node_modules/workerd postinstall: 112, 111, 111, 108,
.../node_modules/workerd postinstall: ... 1048575 more items
.../node_modules/workerd postinstall: ]
.../node_modules/workerd postinstall: }
.../node_modules/workerd postinstall: Node.js v18.13.0
.../node_modules/workerd postinstall: Failed
 ELIFECYCLE  Command failed with exit code 1.
```

# Info
```
pnpm: 7
node: 18
wrangler 2.8.1
OS: Alpine Linux
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.