Hi everyone,
When I try to deploy my project on Vercel v0 the build fails after about 30–40 seconds with the following error:
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <ROOT>/package.jsonNote 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"Build log highlights:
Build runs with Vercel CLI 48.1.6.
pnpm-lock.yamlversion 9 detected, but pnpm@10 is used automatically.Cache skipped because I switched from
buntopnpm.Error points out new dependencies and many mismatches between
package.json(withlatest) and the lockfile.
Repo/branch: github.com/Leonardohdz02/v0_movana_envios (branch: fork_34, commit: fff819a).
My understanding:
In CI, pnpm uses
frozen-lockfileby default.Because my
pnpm-lock.yamlis not aligned with thepackage.jsonspecifiers (manylatest), the installation fails.Also, the lockfile may have been generated with pnpm@9 while Vercel defaults to pnpm@10, which causes incompatibility.
Questions:
Is the recommended fix to regenerate the lockfile with pnpm@10 and pin versions (instead of using
latest)?Or should I configure Vercel’s Install Command to
pnpm install --no-frozen-lockfileas a temporary workaround?Is there a best practice for migrating from Bun to pnpm to avoid these mismatches?
Thanks in advance for your guidance!