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

可以顺利安装依赖了
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...