R
Railway11mo ago
Ironbit

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
Percy
Percy11mo ago
Project ID: 9c12eb21-a07c-426f-8f44-69d6e4ea6e0e
Ironbit
Ironbit11mo ago
9c12eb21-a07c-426f-8f44-69d6e4ea6e0e
Brody
Brody11mo ago
try bumping the minor version yourself with a nixpacks.toml file
[phases.setup]
nixpkgsArchive = '3f05c9a8f8f078b6d026f4c0e73ed9ee7b02950f'
[phases.setup]
nixpkgsArchive = '3f05c9a8f8f078b6d026f4c0e73ed9ee7b02950f'
reference: https://github.com/NixOS/nixpkgs/commit/3f05c9a8f8f078b6d026f4c0e73ed9ee7b02950f
diay
diay10mo ago
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
Want results from more Discord servers?
Add your server