Skip to main content
Version: 9.x

pnpm dedupe

如果可以使用较新的版本,请执行安装,删除锁定文件中的旧依赖。

¥Perform an install removing older dependencies in the lockfile if a newer version can be used.

选项

¥Options

--check

检查运行数据去重是否会导致更改,而无需安装软件包或编辑锁定文件。如果可以更改,则以非零状态代码退出。

¥Check if running dedupe would result in changes without installing packages or editing the lockfile. Exits with a non-zero status code if changes are possible.