Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the version of yarn used?

I used Homebrew to install yarn. Running yarn -v shows that I currently use 0.23.2. I ran brew upgrade yarn to get the latest version, which is 0.24.6.

After Homebrew successfully upgrades yarn, I run yarn -v again, but the version is still 0.23.2. How can I change the version of `yarn that I am running?

like image 673
davidhu Avatar asked Jun 09 '17 01:06

davidhu


1 Answers

yarn policies set-version <version number> 

Per https://github.com/yarnpkg/yarn/issues/7146#issuecomment-477809216

like image 139
Christian Rauh Avatar answered Sep 25 '22 02:09

Christian Rauh