Forum

Notifications
Clear all

Installing Yarn in Linux (Ubuntu/Debian/Mint) via Terminal

1 Posts
1 Users
0 Likes
34 Views
Forum 1
Posts: 41
Admin
Topic starter
(@admin)
Member
Joined: 6 years ago

So, if you are here to check how to install Yarn via terminal, you are at right place. So lets check below.

[su_note note_color="#f5f5d4" radius="6"]| Also Read | Encrypt/Decrypt File in Linux [/su_note]

Steps for installation.

  1. Open Terminal and Enter command for adding Repo
    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<span id="mce_marker" data-mce-type="bookmark" data-mce-fragment="1">​</span>
  2. Now install yarn via command
    sudo apt update && sudo apt install yarn<span id="mce_marker" data-mce-type="bookmark" data-mce-fragment="1">​</span>
  3. check the installation
  4. Check the version
    yarn -v
    1.21.1

[su_note note_color="#f5f5d4" radius="6"]| Also Read | Linux terminology basics you need to know. [/su_note]

So that is it, enjoy your yarn installation. Will add more things here, so keep checking back the forum.

Share: