2 years ago
While building my nextjs app, I keep encountering this issue
10 ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
[stage-0 6/10] RUN --mount=type=cache,id=s/d09aee34-cd4e-4d8d-bebd-e99933b981b4-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile:
17.57 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
17.57 errno: -2,
17.57 code: 'ENOENT',
17.57 syscall: 'spawn node-gyp',
17.57 path: 'node-gyp',
17.57 spawnargs: [ 'rebuild' ]
17.57 }
17.57
17.57 Node.js v18.18.2
17.57 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Dockerfile:20
18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/d09aee34-cd4e-4d8d-bebd-e99933b981b4-/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
Kindly help me guys
ⓘ Deployment information is only viewable by Project members and Railway admins.
0 Replies