R
Railway14mo ago
jaxdotjs

@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:
❯ bun run railway link
error: "railway" exited with code 1 (SIGHUP)
❯ bun run railway link
error: "railway" exited with code 1 (SIGHUP)
I couldn't figure out how to get more debug-level information out of this error, so this is all I got.
13 Replies
Percy
Percy14mo ago
Project ID: N/A
jaxdotjs
jaxdotjs14mo ago
N/A
LaCrak27
LaCrak2714mo ago
what is it with everyone trying bun all of a sudden...
Greg Schier
Greg Schier14mo ago
Seems to work?
No description
jaxdotjs
jaxdotjs14mo ago
v1.0 recently released
LaCrak27
LaCrak2714mo ago
oh, ok...
jaxdotjs
jaxdotjs14mo ago
Bizarre... Not sure why it's breaking for me. I've even tried removing/reinstalling my packages and lockfile.
Greg Schier
Greg Schier14mo ago
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 one
jaxdotjs
jaxdotjs14mo ago
Yeah, 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.
No description
jaxdotjs
jaxdotjs14mo ago
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.
No description
Greg Schier
Greg Schier14mo ago
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 you
No description
jaxdotjs
jaxdotjs14mo ago
Oh okay awesome I'm not crazy 😂
jaxdotjs
jaxdotjs14mo ago
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 ...
Want results from more Discord servers?
Add your server