Trying to deploy a project on Vercel but continue to get this message 'ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json' . I have tried the following steps to resolve to no avail:
-
Deleted the existing pnpm-lock.yaml file from your project.
-
Ran pnpm install again.
-
tried running pnpm install --no-frozen-lockfile as suggested in the error message.
My pnpm -v: 7.33.3
Here is the foll log below:
[14:12:41.456] Running build in Cleveland, USA (East) – cle1
[14:12:41.517] Cloning github.com/Publ/-gudniche (Branch: main, Commit: b4f9ab9)
[14:12:41.523] Skipping build cache, deployment was triggered without cache.
[14:12:41.925] Cloning completed: 407.164ms
[14:12:42.110] Running "vercel build"
[14:12:42.610] Vercel CLI 31.0.1
[14:12:42.893] Warning: Detected "engines": { "node": ">=16" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[14:12:42.917] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8...
[14:12:42.932] Installing dependencies...
[14:12:43.487] ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
[14:12:43.487]
[14:12:43.487] 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"
[14:12:43.487]
[14:12:43.488] Failure reason:
[14:12:43.488] specifiers in the lockfile ({"@headlessui/react":"^1.7.15","@vercel/og":"^0.5.6","clsx":"^1.2.1","is-empty-iterable":"^3.0.0","next":"13.4.6","react":"18.2.0","react-cookie":"^4.1.1","react-unicorn":"^47.0.0","lint-staged":"^13.2.2","postcss":"^8.4.24","prettier":"^2.8.8","prettier-plugin-
help pls