a year ago
[stage-0 6/8] RUN --mount=type=cache,id=s/4ed94330-843c-42aa-bdd3-87e6a6fd871f-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
4.290 …/nodemodules/better-sqlite3 install: gyp ERR! stack at onErrorNT (node:internal/childprocess:484:16)
4.290 …/nodemodules/better-sqlite3 install: gyp ERR! stack at process.processTicksAndRejections (node:internal/process/taskqueues:82:21)
4.290 …/node_modules/better-sqlite3 install: gyp ERR! System Linux 6.1.0-20-cloud-amd64
4.290 …/nodemodules/better-sqlite3 install: gyp ERR! command "/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/bin/node" "/nix/store/w7j1v6qjqixcbf7vis79g7n9ac59xxpl-pnpm/dist/nodemodules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
4.290 …/nodemodules/better-sqlite3 install: gyp ERR! cwd /app/nodemodules/.pnpm/better-sqlite3@9.6.0/node_modules/better-sqlite3
4.290 …/node_modules/better-sqlite3 install: gyp ERR! node -v v22.2.0
4.290 …/node_modules/better-sqlite3 install: gyp ERR! node-gyp -v v9.4.1
4.290 …/node_modules/better-sqlite3 install: gyp ERR! not ok
4.295 …/node_modules/better-sqlite3 install: Failed
4.296 ELIFECYCLE Command failed with exit code 1.
ⓘ Deployment information is only viewable by project members and Railway employees.
5 Replies
a year ago
Try adding a nixpacks.toml to your project -
[phases.setup]
nixPkgs = ["...", "python311", "gcc"]
Status changed to Solved Railway • about 1 year ago
a year ago
tried and got the following error:
8 42.38 at /nix/store/0mh3vks8cyvqq94dhqjpx9hmx8k537gl-source/pkgs/build-support/trivial-builders/default.nix:69:9:
8 42.38 68| inherit buildCommand name;
8 42.38 69| passAsFile = [ "buildCommand" ]
8 42.38 | ^
8 42.38 70| ++ (derivationArgs.passAsFile or [ ]);
8 42.38
8 42.38 (stack trace truncated; use '--show-trace' to show the full, detailed trace)
8 42.38
8 42.38 error: undefined variable 'python38'
8 42.38 at /app/.nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix:19:32:
8 42.38 18| '')
8 42.38 19| gcc nodejs22 pnpm-8x python38
8 42.38 | ^
8 42.38 20| ];
a year ago
I've updated my original message, please try the updated nixpacks.toml.
And for any future errors please use this bookmarklet -
a year ago
Thanks, it worked