yarn set version <version>
Lock the Yarn version used by the project
Arguments
Name | Description |
---|---|
version | Use the specified version, which can also be a Yarn 2 build (e.g 2.0.0-rc.30) or a Yarn 1 build (e.g 1.22.1) |
Options
Name | Description |
---|---|
--only-if-needed | Only lock the Yarn version if it isn't already locked |