pnpm install出现ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE

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_LOCKFILE_WITH_OUTDATED_LOCKFILE

可以顺利安装依赖了

© 版权声明

相关文章

暂无评论

none
暂无评论...