pnpm dedupe

Added in: v7.26.0

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