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

a year 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

brody
EMPLOYEE

a year 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 about 1 year ago


devtghosh
PROOP

a year 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 about 1 year ago


brody
EMPLOYEE

a year ago

I see a package-lock.json file?


Status changed to Awaiting User Response Railway about 1 year ago


devtghosh
PROOP

a year ago

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


Status changed to Awaiting Railway Response Railway about 1 year ago


brody
EMPLOYEE

a year ago

No worries!


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...