pnpm not found on build time
dauletisataev
PROOP

2 months ago

We are suddenly experiencing this today. We didn't change anything related to our build time or other things.

```

copy / /app, .

pnpm install && pnpm build

sh: 1: pnpm: not found

ERROR: failed to build: failed to solve: process "sh -c pnpm install && pnpm build" did not complete successfully: exit code

```

$10 Bounty

1 Replies

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 2 months ago


ilyass012
FREE

2 months ago

hey,

can you share what build system you're using? (dockerfile or what ??) because the fix depends on that, but i think pnpm needs to be explicitly installed in your build environment before it can be called, i think it doesn't come pre-installed

if you are using dockerfile ; you need to add this line before your pnpm install && pnpm build command:

RUN npm install -g pnpm

that's it, the image doesn't ship with pnpm by default so you have to install it explicitly


Welcome!

Sign in to your Railway account to join the conversation.

Loading...