So I had my harddisk formatted and had to redo all my WSL dev environment setup.
I went to the yarn website to install yarn, and was left confused af. I didn't know which way to install yarn, there were so many different ways. Finally I found how to, and want to save it here as a blog post so that I won't have to go through it again.
So here's the magical command :
curl -o- -L https://yarnpkg.com/install.sh | bash
Yep that's it. Copy it to your WSL terminal (fyi I had Ubuntu 20.04 installed) and yarn will be installed.
Now just restart the wsl terminal and type
If yarn installed successfully, then the current installed yarn version number is returned.
Have a good day!