R
Railway7mo ago
jins

Can I specify the bun version to use?

What version of bun is Railway using right now? I'm having a deployment issue due to bcrypt: Error: Cannot find module '/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node' The fix was released last week with v1.0.17: https://github.com/oven-sh/bun/issues/4063#issuecomment-1851375848
GitHub
bcrypt version @5.1.0 errors out with bun install · Issue #4063 · o...
What platform is your computer? Linux 5.15.0-1037-aws x86_64 x86_64 How did you attempt to install or upgrade? installed all the deps. with command - bun install after installation, when the app st...
Solution:
You can specify it via a nixpacks.toml file in your project for example: ```toml [phases.setup]...
Jump to solution
7 Replies
Percy
Percy7mo ago
Project ID: c0958e3e-4cd8-4f89-9376-7c4003820f57
jins
jins7mo ago
c0958e3e-4cd8-4f89-9376-7c4003820f57
Solution
Fragly
Fragly7mo ago
You can specify it via a nixpacks.toml file in your project for example:
[phases.setup]
nixpkgsArchive = '9c69bc8cae2f3b38536a50801961e2e62da13595'
[phases.setup]
nixpkgsArchive = '9c69bc8cae2f3b38536a50801961e2e62da13595'
this is for version 1.0.18
Brody
Brody7mo ago
yo fragly nice job
jins
jins7mo ago
Solid, thank you!
Fragly
Fragly7mo ago
No problem :)