17 days ago
When I go to deploy my Angular project automatically, it is returning this error: Node.js version v18.20.5 detected.The Angular CLI requires a minimum Node.js version of v20.19 or v22.12.
In the package.json file, I added the "engines": {
"node": 22.12
}
But even with this, I still get the same error, but now with the previous version.
Node.js version v22.11 detected. The Angular CLI requires a minimum Node.js version of v20.19 or v22.12.
I'm trying to deploy the project with Angular20
3 Replies
17 days ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
17 days ago
I was able to fix the problem thanks to another thread I found that discussed adding the following line to nixpacks.toml:
[variables]
NODE_VERSION = "22.15.1"
[phases.setup]
nixpkgsArchive = "373d6a14e460f2a1fc8859aeeda11d955487ed37"
But now what happens is that I start the deployment and it just stays there and doesn't finish starting the project. It stopped showing logs because it exceeded 2MB, and after 20 minutes, it returned a "build timed out" error, as shown in the image. I don't know what else to do after that.
Status changed to Awaiting User Response Railway • 16 days ago
Status changed to Solved angelo-railway • 16 days ago