Skip to main content
Version: 11.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.