3 months ago
Hi, I am unable to deploy to railway correctly. I am getting error - error @visulima/boxen@2.0.2: The engine "node" is incompatible with this module. Expected version ">=20.18 <=24.x". Got "18.20.5"
but my node version is 20.19.2
0 Replies
3 months ago
Do you have engines.node
defined in your package.json file?
3 months ago
Hey, like @jeremy has mentioned above please make sure that you have specified the node version in your code or as a service variable. Judging by the node version 18, I would assume that you are using Nixpacks for building your node application, switching to Railpack as your builder can technically also solve your issue, as Railpack uses node version 22 by default.
Regardless, here is the documentation for Nixpacks and Railpack regarding overwriting the node version:
3 months ago
You are welcome! Marking this thread as solved. <:salute:1137099685417451530>
3 months ago
!s
Status changed to Solved uxuz • 3 months ago