Yarn: Yarn how to upgrade version

Created on 4 Jun 2017  路  7Comments  路  Source: yarnpkg/yarn

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]

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

All 7 comments

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

install is more easy than upgrade

OK

$ curl -o- -L https://yarnpkg.com/install.sh | bash

image

error ??? icu4c

$ brew upgrade yarn

image

Was this page helpful?
0 / 5 - 0 ratings