@wayne.swaniawski
To install Yarn on Ubuntu 20.04, follow these steps:
- First, update the package manager's package list by running:
- Install the dependencies needed to add the Yarn package repository to your system by running:
1
|
sudo apt install curl gnupg
|
- 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's package list again to include the Yarn package repository by running:
- Install Yarn by running:
- Verify that Yarn was installed successfully by running:
This should print the version number of Yarn that was installed.