Not able to start ui app

nikhilraj6692
FREE

16 days ago

getting below error:

[stage-0 8/10] RUN --mount=type=cache,id=s/95ec9f3a-8be2-4f60-9019-b365137b6808-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

Dockerfile:24

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

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/95ec9f3a-8be2-4f60-9019-b365137b6808-node_modules/cache,target=/app/node_modules/.cache npm run build

25 |

26 |

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

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

Error: Docker build failed

project id: b2bafbe0-3a7a-4362-a793-704ac1aa83c8

$10 Bounty

4 Replies

Railway
BOT

16 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


idiegea21
HOBBYTop 10% Contributor

16 days ago

heyy, in your railway settings, go to the Build & Deploy tab, and in the Build Command, set it to: CI=false npm run build


16 days ago

Try adding npm ci above your build command in your Dockerfile.


Status changed to Open brody 15 days ago


durga-parkhe
FREE

6 days ago

Hi Team,
When I am deploying a React App on Railway, I am getting below error:

Starting Container npm error code ENOENT npm error syscall open npm error path /app/package.json npm error errno -2 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/app/package.json' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: /root/.npm/_logs/2025-07-29T07_26_55_675Z-debug-0.log.

You can see my project structure as well.