R
Railway16mo ago
patd0

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

Hi, I was wondering if it was possible to use node 18.17 on railway? IF so, mind sharing some details?
Solution:
This one seemed to have worked if anyone else is interested:
[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
...
Jump to solution
7 Replies
Percy
Percy16mo ago
Project ID: 1d5edfc1-e62a-4374-b521-39406854b371
patd0
patd0OP16mo ago
1d5edfc1-e62a-4374-b521-39406854b371
jonbeau
jonbeau16mo ago
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.
Node | Nixpacks
App source + Nix packages + Docker = Image
patd0
patd0OP16mo ago
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"
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 Looks like upgrading the nixpkgsArchive seemed to have worked.
Solution
patd0
patd016mo ago
This one seemed to have worked if anyone else is interested:
[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
jonbeau
jonbeau16mo ago
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. 👍
Brody
Brody16mo ago
they arrived at the correct solution, I was just gonna go get the nixpacks archive for their desired version
Want results from more Discord servers?
Add your server