Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to update yarn if I install through windows installer?

Tags:

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

like image 374
Shabith Avatar asked Aug 30 '17 06:08

Shabith


People also ask

How do I update the version of yarn in Windows?

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.

How do I change my yarn version?

First off, if you already have a version installed, unlink it from brew running the brew unlink yarn command in your terminal. Next, in a web browser, find the Pull Request that has been merged which contained the formula (version) of Yarn that you want to install.

How do I update yarn to version 2?

Run npm install -g yarn to update the global yarn version to latest v1. Go into your project directory. Run yarn set version berry to enable v2 (cf Install for more details) If you used .


2 Answers

The following worked for me:

npm i -g yarn 
like image 117
Yossi Avatar answered Sep 20 '22 17:09

Yossi


Just download the new installer and rerun the setup.

like image 33
Ghashange Avatar answered Sep 18 '22 17:09

Ghashange