#Latest node.js Version. What's the proper way to be using node 18.17?

12 messages · Page 1 of 1 (latest)

hallow slate
#

Hi, I was wondering if it was possible to use node 18.17 on railway? IF so, mind sharing some details?

keen martenBOT
#

Project ID: 1d5edfc1-e62a-4374-b521-39406854b371

grave frigateBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

hallow slate
#

1d5edfc1-e62a-4374-b521-39406854b371

zenith kernel
#

Hello, you can override the version by setting a NIXPACKS_NODE_VERSION env variable or configuring package.json.

https://nixpacks.com/docs/providers/node

Only a major version can be specified. For example, 14.x or 14.

hallow slate
#

Although I think node 18.12.1 is the latest one. Is there a way to bump this up bigger than 18.13~18.14?

#
The engine "node" is incompatible with this module. Expected version ">=18.14.0". Got "18.12.1"
#

This is what Im currently getting on build time

hallow slate
#

Looks like upgrading the nixpkgsArchive seemed to have worked.

#

This one seemed to have worked if anyone else is interested:

[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
zenith kernel
#

Great glad you got it working. note: I'm just some random dude, not affiliated with railway. A conductor might see this and give you a much better answer. 👍

agile stag
#

they arrived at the correct solution, I was just gonna go get the nixpacks archive for their desired version