pnpm build error
temirlanzhangazy
PROOP

a year ago

I have a Nuxt 3 app with pnpm package manager.
During build, this error happened.

╔═══════════════════════ Nixpacks v1.31.0 ═══════════════════════╗

║ setup │ nodejs22, pnpm-9x ║

║────────────────────────────────────────────────────────────────║

║ install │ npm install -g corepack@0.24.1 && corepack enable ║

║ │ pnpm i --frozen-lockfile ║

║────────────────────────────────────────────────────────────────║

║ build │ pnpm run build ║

║────────────────────────────────────────────────────────────────║

║ start │ pnpm run start ║

╚════════════════════════════════════════════════════════════════╝

10 [stage-0 6/11] RUN --mount=type=cache,id=s/8273ee78-2f6a-4c6f-b200-724193a7458d-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 npm install -g corepack@0.24.1 && corepack enable

10 0.204 npm warn config production Use --omit=dev instead.

10 0.856

10 0.856 changed 1 package in 682ms

10 DONE 1.1s

11 [stage-0 7/11] RUN --mount=type=cache,id=s/8273ee78-2f6a-4c6f-b200-724193a7458d-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile

11 1.376 Scope: all 9 workspace projects

11 1.481  WARN  Ignoring not compatible lockfile at /app/pnpm-lock.yaml

11 1.485  ERRPNPMLOCKFILECONFIGMISMATCH  Cannot proceed with the frozen installation. The current "patchedDependencies" configuration doesn't match the value found in the lockfile

11 1.485

11 1.485 Update your lockfile using "pnpm install --no-frozen-lockfile"

11 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code:

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

5 Replies

temirlanzhangazy
PROOP

a year ago

I suspect it because of the pnpm version mismatch, let me see...


temirlanzhangazy
PROOP

a year ago

idk why but updating version

"packageManager": "pnpm@9.15.4",

in package.json helped


Status changed to Solved ray-chen about 1 year ago


kauthon
FREE

10 months ago

Any resolution to this - Is Railway not supporting pnpm 9 yet.


Status changed to Awaiting Railway Response Railway 10 months ago


kauthon

Any resolution to this - Is Railway not supporting pnpm 9 yet.

10 months ago

Hey! Could u open a new thread please? Since this post, Railway introduced Railpack to replace Nixpacks.

If you could attach more info in the new post it would be nice!


Status changed to Solved medim 10 months ago


kauthon
FREE

10 months ago

so you want me touse railpack instead of nixpack


Status changed to Awaiting Railway Response Railway 10 months ago


Status changed to Closed brody 10 months ago


Loading...