From 844fc647c206249d1da8aedf3c5d4554370d5441 Mon Sep 17 00:00:00 2001 From: Swaroop Jaikumar Rajwal <72123851+swaroop18122002@users.noreply.github.com> Date: Mon, 3 May 2021 12:44:58 +0530 Subject: [PATCH] Update self-update.md I came across this repository, and tried everything it was mentioned here Nothing worked Then I just typed random commands on my ubuntu shell This worked Hope the maintainer of this repository will accept my pull request --- lang/en/docs/cli/self-update.md | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/en/docs/cli/self-update.md b/lang/en/docs/cli/self-update.md index 1ec8c94f9..1df263d88 100644 --- a/lang/en/docs/cli/self-update.md +++ b/lang/en/docs/cli/self-update.md @@ -14,4 +14,5 @@ In order to update your version of Yarn, you can run one of the following comman - `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 +- `npm update yarn` - if you want to update Yarn via npm - otherwise, check the docs of the installer you've used to install Yarn