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-1851375848GitHub
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:Jump to solution
You can specify it via a
nixpacks.toml
file in your project
for example:
```toml
[phases.setup]...14 Replies
Project ID:
c0958e3e-4cd8-4f89-9376-7c4003820f57
c0958e3e-4cd8-4f89-9376-7c4003820f57
Solution
You can specify it via a
nixpacks.toml
file in your project
for example:
this is for version 1.0.18
yo fragly nice job
Solid, thank you!
No problem :)
For future readers, you can also use the latest commit like so
New reply sent from Help Station thread:
Where can I find the nix archives?I need to pin to Bun 1.1.22. Bun still segfaults regularly with new releases, and I've found the best way to run it in prod is to pin to a version and manually upgrade every so often.You're seeing this because this thread has been automatically linked to the Help Station thread.
You can find the comments here - https://github.com/NixOS/nixpkgs/commits/master/pkgs/development/web/bun/default.nix
GitHub
History for pkgs/development/web/bun/default.nix - NixOS/nixpkgs
Nix Packages collection & NixOS. Contribute to NixOS/nixpkgs development by creating an account on GitHub.
New reply sent from Help Station thread:
OK, it seems the latest Bun version you have is v1.1.20, but I specifically had to upgrade from that version to v1.1.22 due to segfaults, so if I try to run my Bun application on Railway, it just segfaults.I see you reverted "bun: 1.1.20 -> 1.1.24"Any chance you can push a v1.1.22 version?You're seeing this because this thread has been automatically linked to the Help Station thread.
Please note we do not maintain Nix Packages, that is a separate entity that we have no affiliation with, we are simply using them as a package manager.
If you need cutting edge, for any language, on the majority of cloud container platforms, you will always need a Dockerfile.
There is no overhead to using a Dockerfile as a Dockerfile is what Nixpacks is actually generating behind the scenes for you.
New reply sent from Help Station thread:
@brody any chance you could work with Nix to get the latest Bun into their packages? Yes we can make our own Docker files, but1) Bun docker image is built without SIMD2) It's more tedious that what you get on Vercel, which seems to be able to keep up with Bun development. They have 1.1.26 at the moment.You're seeing this because this thread has been automatically linked to the Help Station thread.
No I'm sorry but thats not something we can do, Nix has their own maintainers for that, we are simply using them as a package manager, nothing more.