I have Yarn version 0.22. I must upgrade Yarn to version 0.23.4 (at least).
I try with commends from Yarn doc:
sudo apt-get update && sudo apt-get install yarn
yarn upgrade v0.23.4
but I still have version 0.22.
How can I upgrade Yarn?
[I need Yarn to install gulp, beacuse in Yarn version 0.22 some packages of gulp not install]
https://github.com/yarnpkg/yarn/releases
has a tar.gz or a deb package
or you can try yarn upgrade
@adamostrogorski you may need to find a mirror with a more current version of the package. all you should need to do is apt-get remove yarn && apt-get update && apt-get install yarn
again.
Check that /etc/apt/sources.list.d/yarn.list
exists. If not, run these commands to configure the repository:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
Then apt-get update && apt-get install yarn
will give you the latest Yarn. This repo should always have the latest version of Yarn.
See the docs for more information: https://yarnpkg.com/en/docs/install#linux-tab
Please let me know if this doesn't work for you :)
Use alternative method to update yarn https://yarnpkg.com/en/docs/install#alternatives-tab
Run this on cli, curl -o- -L https://yarnpkg.com/install.sh | bash
here's what works for me...
npm i -g yarn
Mac users with homebrew can run brew upgrade yarn
OK
$ curl -o- -L https://yarnpkg.com/install.sh | bash
error ??? icu4c
$ brew upgrade yarn
Most helpful comment
Use alternative method to update yarn https://yarnpkg.com/en/docs/install#alternatives-tab
Run this on cli,
curl -o- -L https://yarnpkg.com/install.sh | bash