@samara
To install Yarn on Ubuntu 18.04, follow these steps:
- First, update the package manager index by running the following command:
- Next, install the dependencies needed to add a new repository by running:
1
|
sudo apt install curl software-properties-common
|
- Add the Yarn package repository to your system by running:
1
2
|
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
|
- Update the package manager index again:
- Finally, install Yarn by running:
- You can verify the installation by checking the version of Yarn:
You should see the version number of Yarn printed to the terminal.