Build failure, Api em node.js banco mySQL
emersonsantos98
HOBBYOP

2 years ago

When creating the Api it is giving these errors: Dockerfile:20

18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/ea79dfc1-a1c5-4c85-a6a6-eb991d55e389-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile

21 |

22 | # build phase

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

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

Solved

7 Replies

emersonsantos98
HOBBYOP

2 years ago

Build_LOGS

Attachments


brody
EMPLOYEE

2 years ago

What version of yarn do you use locally?


emersonsantos98
HOBBYOP

2 years ago

Version : 1.22.19


brody
EMPLOYEE

2 years ago

Your yarn lock file is not in sync with package.json.


Status changed to Solved Railway over 1 year ago


emersonsantos98
HOBBYOP

2 years ago

what is the recommendation?


emersonsantos98
HOBBYOP

2 years ago

Is uninstalling yarn and installing again enough?


brody
EMPLOYEE

2 years ago

You need to sync your yarn lock file.


Loading...