一、遇到的问题
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <ROOT>/package.json
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"
Failure reason:
specifiers in the lockfile don't match specifiers in package.json:
* 1 dependencies were added: playwright@^1.55.1
Error: Command "pnpm install" exited with 1
原因:
在仓库中提交了pnpm-lock.yaml文件,导致vercel直接优先读取锁定的文件版本,导致编译失败。
二、解决方法
配置以下命令:
pnpm install --no-frozen-lockfile
解决pnpm锁文件过期问题

被折叠的 条评论
为什么被折叠?



