Node 22.3.0 support via nixpacks?

on setup it says: nodejs_22, yarn-1_x, openssl but then later crashes with: The engine "node" is incompatible with this module. Expected version ">=22.3.0". Got "22.2.0". I noticed that 22.2.0 does work when set as the engine in package.json
Solution:
try adding this nixpacks.toml to your project -
[phases.setup]
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838' # https://github.com/NixOS/nixpkgs/commit/dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838
[phases.setup]
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838' # https://github.com/NixOS/nixpkgs/commit/dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838
...
Jump to solution
5 Replies
Solution
Brody
Brody5mo ago
try adding this nixpacks.toml to your project -
[phases.setup]
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838' # https://github.com/NixOS/nixpkgs/commit/dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838
[phases.setup]
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838' # https://github.com/NixOS/nixpkgs/commit/dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838
cstoneham
cstonehamOP5mo ago
no luck
[build]
nixpacksVersion = "1.24.1"

[phases.setup]
nixPkgs = ['...', 'fontconfig']
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838'
[build]
nixpacksVersion = "1.24.1"

[phases.setup]
nixPkgs = ['...', 'fontconfig']
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838'
Brody
Brody5mo ago
that looks like a combination of a railway.toml and a nixpacks.toml file
cstoneham
cstonehamOP5mo ago
oh my mistake, giving it another shot awesome that worked, thanks!
Brody
Brody5mo ago
no problem!
Want results from more Discord servers?
Add your server