@railway/cli not running correctly when installed as a Bun devDependency
I have
@railway/cli
installed as a devDependency
in my project. This has worked fine with me while using other package managers such as pnpm
, but for some reason when I try to run it with bun I get the following error:
I couldn't figure out how to get more debug-level information out of this error, so this is all I got.13 Replies
Project ID:
N/A
N/A
what is it with everyone trying bun all of a sudden...
Seems to work?
v1.0 recently released
oh, ok...
Bizarre... Not sure why it's breaking for me. I've even tried removing/reinstalling my packages and lockfile.
Does it work outside of bun? Like if you run the
railway
executable from node_modules manually
Also maybe try some other railway commands to see if it's just that oneYeah, I've had it running with
pnpm
for a while, was just trying out Bun and noticed it suddenly stopped working. Also - can confirm that this happens with any railway
command variant I pass it, even railway
by itself.Here are some variations of the bun execution failing. I wish I could be more helpful, but I'm unsure how to debug this further. It's not a big deal if I can't get it working right now since I'm just playing around with Bun. I figured I'd raise the issue here in case others have experienced it.
Oh, you know what. I had added the Railway dep with npm. When I delete node_modules and
bun install
I get the same thing as youOh okay awesome I'm not crazy 😂
I created an issue on GitHub to track this problem https://github.com/railwayapp/cli/issues/446
GitHub
Can not execute CLI when installed as a devDependency via Bun · Iss...
Description When I install @railway/cli as a devDependency using Bun, I'm unable to execute it. ❯ bun run railway link error: "railway" exited with code 1 (SIGHUP) System Information ...