Build failure, Api em node.js banco mySQL

emersonsantos98
HOBBY

a year 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
HOBBY

a year ago

Build_LOGS

Attachments


a year ago

What version of yarn do you use locally?


emersonsantos98
HOBBY

a year ago

Version : 1.22.19


a year ago

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


Status changed to Solved railway[bot] over 1 year ago


emersonsantos98
HOBBY

a year ago

what is the recommendation?


emersonsantos98
HOBBY

a year ago

Is uninstalling yarn and installing again enough?


a year ago

You need to sync your yarn lock file.