美文网首页
pnpm install出现ERR_PNPM_FROZEN_LO

pnpm install出现ERR_PNPM_FROZEN_LO

作者: 很好就这样吧 | 来源:发表于2023-11-27 11:47 被阅读0次
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

可以顺利安装依赖了

相关文章

网友评论

      本文标题:pnpm install出现ERR_PNPM_FROZEN_LO

      本文链接:https://www.haomeiwen.com/subject/qbvzwdtx.html