Node version problem

I am in need of Node v18 in my project due to some features. But while deploying to railway it is defaulting to node 16, but not the latest version. I want to know if there is a way to specify the nodeJS version to use while deploying in railway.
Solution:
yes though i personally prefer the Specifying the engines.node field in package.json method
Jump to solution
7 Replies
Percy
Percy2y ago
Project ID: 7e6088d8-5593-4608-addd-176093e13841
tsensei
tsenseiOP2y ago
7e6088d8-5593-4608-addd-176093e13841
Brody
Brody2y ago
yes you can specify major versions of node, 18 is supported https://nixpacks.com/docs/providers/node#setup
tsensei
tsenseiOP2y ago
So basically I can specify the node version through the env variable NIXPACKS_NODE_VERSION in variable tab in railway before deploying ?
Solution
Brody
Brody2y ago
yes though i personally prefer the Specifying the engines.node field in package.json method
tsensei
tsenseiOP2y ago
thanks much
Brody
Brody2y ago
no problem
Want results from more Discord servers?
Add your server