Build Failed - Express.js Project
e13balwinder
HOBBYOP

2 years ago

I tried to deploy my expressjs server with pnpm package manager, but it is giving instant error while build process.
I have checked locally many times, no build issue is there.
I have changed my package manager to npm still not working.
I deleted my project and create again, still giving me the error, which is not containing much information to understand what is happening.

View Deploy details

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

2 Replies

e13balwinder
HOBBYOP

2 years ago

Dockerfile:20

-------------------

18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/abce4973-5d84-4433-b073-f18a5534672b-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile

21 |

22 | # build phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1

Error: Docker build failed


2 years ago

> still giving me the error, which is not containing much information to understand what is happening.

That's because the error is further up in the logs, scroll up.

But for me to help you debug, I would need your full build logs - https://bookmarklets.up.railway.app/log-downloader/


Loading...