Builds fail in Node 18.18.2 and 20.9.0 due to: https://github.com/npm/cli/issues/6842
Versions of node 18 and 20 used by railway can't spawn node-gyp due to this bug https://github.com/npm/cli/issues/6842. Can't select minor version myself using
NIXPACKS_NODE_VERSION
. Railway needs to bump minor version on their end.
Bug is fixed in:
18.9.0
20.10.0
GitHub
Issues · npm/cli
the package manager for JavaScript. Contribute to npm/cli development by creating an account on GitHub.
4 Replies
Project ID:
9c12eb21-a07c-426f-8f44-69d6e4ea6e0e
9c12eb21-a07c-426f-8f44-69d6e4ea6e0e
try bumping the minor version yourself with a nixpacks.toml file
reference: https://github.com/NixOS/nixpkgs/commit/3f05c9a8f8f078b6d026f4c0e73ed9ee7b02950f
I've tried this solution and several others posted on discord with no luck. Was finally able to get things working again by downgrading to nix version
1.16.0
before railway started using bun