R
Railway7mo 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
Percy7mo ago
Project ID: 11039c5b-a8e3-4789-ad66-c7c5ed7f843e
BruceX
BruceX7mo ago
11039c5b-a8e3-4789-ad66-c7c5ed7f843e Ive tried re-push to make build process try again. It still showed me failure.
BruceX
BruceX7mo ago
here is log file downloaded. I opened it, but not found any special.
Solution
Brody
Brody7mo ago
node 14 is not supported anymore, please update to node 18
BruceX
BruceX7mo ago
ok, got it. Thank you very much.
Brody
Brody7mo ago
in your package.json set engines.node to 18
BruceX
BruceX7mo ago
I dont have this property: engines.node.
Brody
Brody7mo ago
you can set it then
BruceX
BruceX7mo ago
But, I have a file .nvmrc, its has content with "v14.15.5". ok I ll try it.
Brody
Brody7mo ago
ah yes nixpacks will read the version from the .nvmrc file, make sure to update the version there too
BruceX
BruceX7mo ago
Ok, thanks a lot.
Brody
Brody7mo ago
no problem!
Khalid
Khalid7mo ago
i guess this one should be highlighted. took me day and half to figure it out.
Brody
Brody7mo ago
node 14 has been end of life for a few months now