MERN App - Not able to host due to "/bin/bash -ol pipefail -c npm ci" error

mansoorshaik02TRIAL

6 months ago

#10 2.418 npm ERR! 18 more (@emotion/styled, ...)

Oct 16 20:56:17

#10 2.418 npm ERR!

Oct 16 20:56:17

#10 2.418 npm ERR! Could not resolve dependency:

Oct 16 20:56:17

#10 2.418 npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4

Oct 16 20:56:17

#10 2.418 npm ERR! node_modules/@material-ui/core

Oct 16 20:56:17

Oct 16 20:56:17

#10 2.418 npm ERR! @material-ui/core@"^4.12.4" from the root project

Oct 16 20:56:17

#10 2.418 npm ERR! peer @material-ui/core@"^4.12.1" from @material-ui/lab@4.0.0-alpha.61

Oct 16 20:56:17

#10 2.418 npm ERR! node_modules/@material-ui/lab

Oct 16 20:56:17

#10 2.418 npm ERR! @material-ui/lab@"^4.0.0-alpha.61" from the root project

Oct 16 20:56:17

#10 2.418 npm ERR!

Oct 16 20:56:17

#10 2.418 npm ERR! Conflicting peer dependency: react@17.0.2

Oct 16 20:56:17

#10 2.418 npm ERR! node_modules/react

Oct 16 20:56:17

#10 2.418 npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4

Oct 16 20:56:17

#10 2.418 npm ERR! node_modules/@material-ui/core

Oct 16 20:56:17

#10 2.418 npm ERR! @material-ui/core@"^4.12.4" from the root project

Oct 16 20:56:17

#10 2.418 npm ERR! peer @material-ui/core@"^4.12.1" from @material-ui/lab@4.0.0-alpha.61

Oct 16 20:56:17

#10 2.418 npm ERR! node_modules/@material-ui/lab

Oct 16 20:56:17

#10 2.418 npm ERR! @material-ui/lab@"^4.0.0-alpha.61" from the root project

Oct 16 20:56:17

#10 2.418 npm ERR!

Oct 16 20:56:17

#10 2.418 npm ERR! Fix the upstream dependency conflict, or retry

Oct 16 20:56:17

#10 2.418 npm ERR! this command with --force or --legacy-peer-deps

Oct 16 20:56:17

#10 2.418 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Oct 16 20:56:17

#10 2.418 npm ERR!

Oct 16 20:56:17

#10 2.418 npm ERR!

Oct 16 20:56:17

#10 2.418 npm ERR! For a full report see:

Oct 16 20:56:17

#10 2.418 npm ERR! /root/.npm/_logs/2024-10-16T15_26_15_552Z-eresolve-report.txt

Oct 16 20:56:17

#10 2.420

Oct 16 20:56:17

#10 2.420 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-10-16T15_26_15_552Z-debug-0.log

Oct 16 20:56:17

#10 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1

Oct 16 20:56:17

Oct 16 20:56:17

-----

Oct 16 20:56:17

> [stage-0 6/10] RUN --mount=type=cache,id=s/5d11d8b6-2bbe-41d9-ab6c-e56d1947ed59-/root/npm,target=/root/.npm npm ci:

Oct 16 20:56:17

2.418 npm ERR!

Oct 16 20:56:17

2.418 npm ERR! Fix the upstream dependency conflict, or retry

Oct 16 20:56:17

2.418 npm ERR! this command with --force or --legacy-peer-deps

Oct 16 20:56:17

2.418 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Oct 16 20:56:17

2.418 npm ERR!

Oct 16 20:56:17

2.418 npm ERR!

Oct 16 20:56:17

2.418 npm ERR! For a full report see:

Oct 16 20:56:17

2.418 npm ERR! /root/.npm/_logs/2024-10-16T15_26_15_552Z-eresolve-report.txt

Oct 16 20:56:17

2.420

Oct 16 20:56:17

2.420 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-10-16T15_26_15_552Z-debug-0.log

Oct 16 20:56:17

-----

Oct 16 20:56:17

Oct 16 20:56:17

Dockerfile:20

Oct 16 20:56:17

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

Oct 16 20:56:17

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

Oct 16 20:56:17

19 | COPY . /app/.

Oct 16 20:56:17

20 | >>> RUN --mount=type=cache,id=s/5d11d8b6-2bbe-41d9-ab6c-e56d1947ed59-/root/npm,target=/root/.npm npm ci

Oct 16 20:56:17

21 |

Oct 16 20:56:17

22 | # build phase

Oct 16 20:56:17

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

Oct 16 20:56:17

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

Oct 16 20:56:17

Oct 16 20:56:17

Error: Docker build failed

0 Replies