Error when trying to install dependencies in a turborepo
caue397
HOBBYOP

4 months ago

First of all, is it possible to run a turborepo ecosystem on the railway?

ERROR: failed to build: failed to solve: process "bun install --frozen-lockfile" did not complete successfully: exit code: 1

I've read about lockfile, bun version, I've tried everything and still haven't been able to do it.

https://bun.com/docs/pm/lockfile

$10 Bounty

2 Replies

Yes it's possible. I run a turborepo monorepo with multiple apps here on railway, so I hope I can help. The error you're getting means that your lockfile is out of sync with your package.json. Typically you just delete your lockfile/node_modules and run bun install then commit and push the new lockfile to solve this issue.


darseen

Yes it's possible. I run a turborepo monorepo with multiple apps here on railway, so I hope I can help. The error you're getting means that your lockfile is out of sync with your package.json. Typically you just **delete your lockfile/node\_modules** and run `bun install` then commit and push the new lockfile to solve this issue.

caue397
HOBBYOP

4 months ago

I've tried that too. I even used a turborepo configuration that globalizes the dependencies for node_modules in the root. I saw a post here about the bun version where the file was .lockb, and now it's just .lock, which is why it always fails.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...