Build error - The engine "node" is incompatible with this module.

spidertwin2
PRO

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

Solved

0 Replies

spidertwin2
PRO

3 months ago

58e6dbe2-4d01-4671-8fd7-1567fce84234


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:


spidertwin2
PRO

3 months ago

Switching to Railpack worked! Thank you both 😃


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