R
Railway

✋|help

@railway/cli not running correctly when installed as a Bun devDependency

Jjaxdotjs9/11/2023
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)


I couldn't figure out how to get more debug-level information out of this error, so this is all I got.
Jjaxdotjs9/11/2023
N/A
Llacrak279/11/2023
what is it with everyone trying bun all of a sudden...
Ggschier9/11/2023
Seems to work?
Jjaxdotjs9/11/2023
v1.0 recently released
Llacrak279/11/2023
oh, ok...
Jjaxdotjs9/11/2023
Bizarre... Not sure why it's breaking for me. I've even tried removing/reinstalling my packages and lockfile.
Ggschier9/11/2023
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
Jjaxdotjs9/11/2023
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.
Jjaxdotjs9/11/2023
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.
Ggschier9/11/2023
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
Jjaxdotjs9/12/2023
Oh okay awesome I'm not crazy 😂
I created an issue on GitHub to track this problem https://github.com/railwayapp/cli/issues/446

Looking for more? Join the community!

Recommended Posts
Bun installHi, im trying to deploy a bun app to railway, nixpacks seems to have picked it up, but is trying to Memory MetricsDo the memory metrics represent the entire memroy being used by all the active process in that serviCan we easily add some config files for a dockerhub type of deployment ?https://docs.railway.app/develop/services#docker-image we can deploy from dockerhub and that's very TLS handshake timeout during transition from build to deployFull log message: ``` [us-west1] ========================= Using Detected Dockerfile =============Can I deploy an image from dockerhub directly ?Hello, all said in the title. I wanted to setup an opentelemetry collector and play with https://hubBuild->deploy Process suddenly brokei feel like you guys changed the way your containers are structured and it broke my build->deploy prRailway server sleep even purchase Hobby planhey guys, I paid for Hobby plan and I was successful deploy my nodejs server on railway last night, Node.js v18.12.1 is not supported by Astro, how to update to : ">=18.14.1"?Anyone can help me, please? Got this error while building Astro, how to update to : ">=18.14.1"? Tbundo railway have support for bun in the near feature?Issue Deploying Next.js 13 with Bun 1.0For better or worse I've decided to follow the hype train and am trying to get Bun 1.0 working with Pricing QuestionsI'm looking for some clarification regarding Railway's pricing structure. I've noticed that the 'HobDeploying via github always crashes after 4-5 minutesI am creating a discord bot and when I commit to github and deploy it, it starts fine at first. But Deploying bun 1.0in bun cause I don't need to build files is their somehow I can skip the build step since it alreadyWhere can you store Media Files?I'm using Django and have added a blog module to it where users can upload their own images. I was wEasy (?) shared variables questionThe environment contains the excellent Payload CMS template, attendant Mongo DB, and a Next.js frontPlan update issueIm having a issue with plan update. It just shows: Problem processing payment method and I triple cCan't create an account: Device requesting login is not supported. Please try again from a secure coTrying to create a new Railway Account, but getting this error: ```Device requesting login is not saccess to resource inside replicahi, when we setup an instance to have 2 replicas, how do we get the resource related to 1 of the reCommunicate between services with private networkProject ID: 3f51dcb4-6905-4a13-be75-4c6063e4324a I am trying to set up Railway to communicate betweWeb Server Not WorkingI just started a small simple web server. I generated a custom domain for now, and when trying to ac