ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE Cannot perform a frozen installation because the version of the lockfile is incompatible with this version of pnpm
Try either:
1. Aligning the version of pnpm that generated the lockfile with the version that installs from it, or
2. Migrating the lockfile so that it is compatible with the newer version of pnpm, or
3. Using "pnpm install --no-frozen-lockfile".
这个问题的原因,大概大概就是两个版本之间的lockfile不兼容,参考github中同类问题的解答
https://github.com/pnpm/pnpm/issues/6307
根据提示使用
pnpm install --no-frozen-lockfile
![](https://img.haomeiwen.com/i2104657/228effd8b70035c2.png)
可以顺利安装依赖了
网友评论