Railway build stopped using bun for installing packages and started using npm
devtghosh
PROOP

2 years ago

Hey, I have a project that is being deployed via github without a docker file. The node_modules were installed using bun. When the project was first deployed it was working but at some point of time it stopped using bun and started using npm instead. This is causing the builds to fail due to a lack of package-lock.json file.

Solved

5 Replies

2 years ago

Hello,

npm is used when a package-lock.json file is found or if no other lock file is found, if you would like to use bun, make sure you only have a bun lock file.


Status changed to Awaiting User Response Railway almost 2 years ago


devtghosh
PROOP

2 years ago

I do have a bun.lockb file. And no package-lock.json file.

files I have

https://share.cleanshot.com/mHYPNZNB


Status changed to Awaiting Railway Response Railway almost 2 years ago


2 years ago

I see a package-lock.json file?


Status changed to Awaiting User Response Railway almost 2 years ago


devtghosh
PROOP

2 years ago

Oh I am so sorry, I missed the package-lock file. Thank you.


Status changed to Awaiting Railway Response Railway almost 2 years ago


2 years ago

No worries!


Status changed to Awaiting User Response Railway almost 2 years ago


Status changed to Solved brody almost 2 years ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...