yarn / 1.22.17 / cli / self-update.html /

32. yarn self-update

Updates Yarn to the latest version.

yarn self-update

Important: self-update is not available. See policies for enforcing versions within a project

In order to update your version of Yarn, you can run one of the following commands:

  • npm install --global yarn - if you’ve installed Yarn via npm (recommended)
  • curl --compressed -o- -L - https://yarnpkg.com/install.sh | bash if you’re on Unix
  • otherwise, check the docs of the installer you’ve used to install Yarn

© 2016–present Yarn Contributors
Licensed under the BSD License.
https://classic.yarnpkg.com/en/docs/cli/self-update