R
Railway13mo ago
BruceX

A NodeJS project building failed.

I changed very few files, and pushed them into github, after that github-actions build passed. In the end, railway building went failure. the last few lines of build logs below:
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100

Error: Docker build failed
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100

Error: Docker build failed
Solution:
node 14 is not supported anymore, please update to node 18
Jump to solution
15 Replies
Percy
Percy13mo ago
Project ID: 11039c5b-a8e3-4789-ad66-c7c5ed7f843e
BruceX
BruceXOP13mo ago
11039c5b-a8e3-4789-ad66-c7c5ed7f843e Ive tried re-push to make build process try again. It still showed me failure.
BruceX
BruceXOP13mo ago
here is log file downloaded. I opened it, but not found any special.
Solution
Brody
Brody13mo ago
node 14 is not supported anymore, please update to node 18
BruceX
BruceXOP13mo ago
ok, got it. Thank you very much.
Brody
Brody13mo ago
in your package.json set engines.node to 18
BruceX
BruceXOP13mo ago
I dont have this property: engines.node.
Brody
Brody13mo ago
you can set it then
BruceX
BruceXOP13mo ago
But, I have a file .nvmrc, its has content with "v14.15.5". ok I ll try it.
Brody
Brody13mo ago
ah yes nixpacks will read the version from the .nvmrc file, make sure to update the version there too
BruceX
BruceXOP13mo ago
Ok, thanks a lot.
Brody
Brody13mo ago
no problem!
Khalid
Khalid13mo ago
i guess this one should be highlighted. took me day and half to figure it out.
Brody
Brody13mo ago
node 14 has been end of life for a few months now
Want results from more Discord servers?
Add your server