Awesome
asdf-yarn
Yarn plugin for the asdf version manager.
💡 Note: This plugin validates package authenticity via
gpg
.
Requirements
This plugin should work out of the box on Linux and Mac operating systems. If one of the commands needed is unavailable, it will let you know.
Installing
asdf plugin-add yarn
asdf install yarn latest
Looking for Yarn v2?
In v2.x, Yarn introduced its own version manager which can only be configured on a per-project basis. There is no "global install" variation of the v2.x release line.
To use Yarn v2.x in your project:
-
Use this plugin to set the v1.x Yarn version for the project (e.g:
asdf local yarn 1.22.10
). -
Use Yarn to set the v2.x Yarn version for the project (e.g:
yarn set version 2.4.1
).
After these two steps, your project will be configured to use Yarn v2.x. If you do not wish to opt in to v2.x, then step 1 is all you need.