yarn set resolution — Yarn CLI reference

Pin a descriptor to a specific resolution

Docs/Reference/CLI/set/resolution

yarn set resolution

Pin a descriptor to a specific resolution

yarn set resolution <DESCRIPTOR> <REFERENCE>

This command updates the current lockfile resolution table so the given descriptor resolves to the given reference.

The override is stored in the lockfile, not the manifest. It disappears if the lockfile entry disappears. To make it persistent, edit the top-level resolutions field instead.

Note that no attempt is made at validating that resolution is a valid resolution entry for descriptor.