Z
Zerops4mo ago
minsomai

PNPM build error in prod, locally builds fine

2025-05-26T18:04:21.062Z ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.11.0.tgz
2025-05-26T18:04:22.143Z ! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977.
2025-05-26T18:04:22.143Z ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
2025-05-26T18:04:22.143Z
2025-05-26T18:04:23.360Z Recreating /build/source/node_modules
2025-05-26T18:04:23.375Z  EACCES  EACCES: permission denied, unlink '/build/source/node_modules/.modules.yaml'
2025-05-26T18:04:23.376Z
2025-05-26T18:04:23.376Z
2025-05-26T18:04:23.376Z
2025-05-26T18:04:23.417Z
2025-05-26T18:04:23.417Z ━━━━ ❌ pnpm i ━━━━
2025-05-26T18:04:23.417Z
2025-05-26T18:04:23.417Z [BUILD ERROR] running build commands failed
2025-05-26T18:04:21.062Z ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.11.0.tgz
2025-05-26T18:04:22.143Z ! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977.
2025-05-26T18:04:22.143Z ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
2025-05-26T18:04:22.143Z
2025-05-26T18:04:23.360Z Recreating /build/source/node_modules
2025-05-26T18:04:23.375Z  EACCES  EACCES: permission denied, unlink '/build/source/node_modules/.modules.yaml'
2025-05-26T18:04:23.376Z
2025-05-26T18:04:23.376Z
2025-05-26T18:04:23.376Z
2025-05-26T18:04:23.417Z
2025-05-26T18:04:23.417Z ━━━━ ❌ pnpm i ━━━━
2025-05-26T18:04:23.417Z
2025-05-26T18:04:23.417Z [BUILD ERROR] running build commands failed
No description
4 Replies
Jan Saidl
Jan Saidl4mo ago
Hi @minsomai , could you try clearing the build cache?
No description
Jan Saidl
Jan Saidl4mo ago
We've changed the user under which the build runs, and your last build is relatively old. So that might be the cause. https://discord.com/channels/735781031147208777/1296760913881206866/1367161072942846044
minsomai
minsomaiOP4mo ago
thanks it worked out good
Aleš
Aleš4mo ago
@minsomai add CI=true to your build container envs, that should prevent it from happening or maybe not necessarily this one, but in general pnpm needs to know it runs in CI so it won't hurt 🙂

Did you find this page helpful?