how to update yarn if I install through windows installer?

13.5k Views Asked by At

I have installed yarn via windows installer sometimes back. Now I want to update it to latest version. How can I do that?

3

There are 3 best solutions below

0
On

Just download the new installer and rerun the setup.

2
On

The following worked for me:

npm i -g yarn
0
On

choco upgrade yarn -y

    1. open powershell as administrator
    1. run choco upgrade yarn -y

I stumble across this minutes ago, searching on the docs I found nothing but 'yarn self-update', I don't know if this is a deprecated command, but themselves do not recommend it. so I looked for the install options and it give the Chocolatey package. So just upgrade via it.