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