2 years ago
trying to deploy a nestJS backend with pnpm, but getting the following errors because of an incompatible version of the lockfile
#10 1.694 WARN Ignoring not compatible lockfile at /app/pnpm-lock.yaml
#10 1.701 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
#10 1.701
#10 1.701 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
[stage-0 6/10] RUN --mount=type=cache,id=s/ea3e0f94-1166-4bbd-9000-27e01a9ab79c-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
1.694 WARN Ignoring not compatible lockfile at /app/pnpm-lock.yaml
1.701 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
1.701
1.701 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
Dockerfile:20
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/ea3e0f94-1166-4bbd-9000-27e01a9ab79c-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
21 |
22 | # build phase
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
Error: Docker build failed
ⓘ Deployment information is only viewable by Project members and Railway admins.
2 Replies
2 years ago
was working on a new machine with pnpm v9. fixed it by downgrading it to v8