Build fails before install command
hgeldenhuys
PROOP

2 years ago

I've added some echo commands in my install command to debug if my stuff was actually executing, but it appears that my pre-install stuff (presumable something to do with nixpacks) is no longer working, and talking about PNPM.

I added a npm install pnpm -g to see if it resolves anything, but no, still causes issues. I primarily want to use BunJs not PNPM

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

4 Replies

brody
EMPLOYEE

2 years ago

Do you have a bun lock file, and only a bun lock file?

If you have lock files for other package managers (npm/pnpm/yarn) they have higher priority and will default the build to use them with node instead of bun.


Status changed to Solved Railway over 1 year ago


hgeldenhuys
PROOP

2 years ago

Hi there, I don't commit any lockfiles in the repo


brody
EMPLOYEE

2 years ago

If you would like bun to be used you need to commit your bun lock file.


hgeldenhuys
PROOP

2 years ago

Thank you so much, seems to do the trick


Loading...