跳至主要内容
版本: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.