Cloudflare DevelopersCD
Cloudflare Developers14mo ago
3 replies
0xCC

Cloudflare pages build - ERR_PNPM_NO_LOCKFILE

Hello guys, I hit error when build(just text changes) the pages today - but it was fine last time
And there is pnpm-lock.yaml in code repo

10:46:05.883     WARN  Ignoring not compatible lockfile at /opt/buildhome/repo/pnpm-lock.yaml
10:46:05.885     ERR_PNPM_NO_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
10:46:05.885    
10:46:05.886    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:46:05.917    Error: Exit with error code: 1
10:46:05.917        at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
10:46:05.917        at Object.onceWrapper (node:events:652:26)
10:46:05.917        at ChildProcess.emit (node:events:537:28)
10:46:05.917        at ChildProcess._handle.onexit (node:internal/child_process:291:12)
10:46:05.927    Failed: build command exited with code: 1
10:46:06.645    Failed: error occurred while running build command
Was this page helpful?