bun: command not found
Hello,
I'm trying to migrate my project to bun to make TS easier, and I'm when deploying, the logs get spammed with "/bin/bash: line 1: bun: command not found". I have a bun.lockb file, so it should auto-detect bun, no?
My start command is
bun run start
which runs bun --smol run src/main.ts
Please let me know what more I can provide!
Project ID: 70bac78f-22aa-44c7-b196-a54ada2d52c8
18 Replies
Project ID:
70bac78f-22aa-44c7-b196-a54ada2d52c8
do you have a left over lock file from npm/pnpm/yarn? if any of those are detected your build will still use node, if you're gonna switch to bun you gotta fully commit
nope, nothing else. is there anything else that could mess up that detection?
hrm, after removing the
NIXPACKS_PKGS
variable (that was set to python39 gcc
), the build process throws "Nixpacks was unable to generate a build plan for this app.", and it lists the contents of src
, not the root directory
is that why it is messing up somehow?for sure, do you have the root directory configured too?
the screenshot I showed is the entire directory, there is nothing aside from that
screenshot doesn't load
show me your build logs please
sorry, the screenshot above, I'll send those shortly
(it loaded now)
logs (I believe this is the correct attempt):
why- did it cut most of it out
another possibility: what should "providers" be set to? bun isn't an option, only node is...
ahg that was it! @Brody so sorry to bother you, I resolved the issue by creating a nixpacks.toml file with
providers = ["bun"]
. I guess the detection might be buggy?detection worked fine, you just overwrote the providers with node in your settings
when removing that, nixpacks complained with this iirc
and there is no option for bun in the providers menu
anyway, no worries :)
sounds good!