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