I am getting this annoying error and I dont know how to fix it

enochaseks
FREE

4 months ago

I am trying to fix this error:

✕ [stage-0 8/10] RUN --mount=type=cache,id=s/bc3a6907-c616-420e-99f1-12c03781abea-node_modules/cache,target=/app/node_modules/.cache npm run build

process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1

Apr 30 05:47:42

Dockerfile:24

Apr 30 05:47:42

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

Apr 30 05:47:42

22 | # build phase

Apr 30 05:47:42

23 | COPY . /app/.

Apr 30 05:47:42

24 | >>> RUN --mount=type=cache,id=s/bc3a6907-c616-420e-99f1-12c03781abea-node_modules/cache,target=/app/node_modules/.cache npm run build

Apr 30 05:47:42

25 |

Apr 30 05:47:42

26 |

Apr 30 05:47:42

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

Apr 30 05:47:42

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1

Apr 30 05:47:42

Error: Docker build failed

However it is not giving me much info it keeps saying dockerfiles but I havent used a dockerfile it keeps saying something about the build but I have tried many fixes, AI is useless as always and I am still experiencing this so if anyone knows how to fix this please let me know

Closed

1 Replies

3 months ago

Hey!

This is an issue with your project / application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.

Other communities such as Stackoverflow might be able to help you out further.

Best,
Brody


Status changed to Awaiting User Response Railway 4 months ago


Status changed to Closed brody 4 months ago