How to Install Yarn on Debian 10 Buster

|
Published:
|
|

In this guide, we are going to learn about how to install Yarn on Debian 10 Buster. Yarn is a java script package manager that enables you to use and share your code with other developers quickly, securely, and reliably through a package which contains all the code being shared as well as a package.json file which describes the package.

Install Yarn on Debian 10 Buster

Create Yarn Repository

Yarn is not available on default Debian 10 Buster repos. Thus, you need to create its repo for easy installation.

Before you can create the Yarn repo, you need install the Yarn repo GPG signing key.

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

Once the key is in place, run the command below to create the Yarn repo.

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

Run System Update

Now that the repos is installed, resynchronize your system packages to their latest versions.

apt update

Install Yarn

Now that you have Yarn repos in place, run the command below to install it.

apt install yarn

Once the installation is done, you can run the command below to test Yarn installation.

yarn --version
1.17.3

That is it on installation Yarn on Debian 10 Buster.

Read more about Yarn and how to use on it documentation page.

Yarn Documentation

Other Tutorials;

Install Gradle on Debian 10/9

Install Oracle Java 12 on Debian 10

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

2 thoughts on “How to Install Yarn on Debian 10 Buster”

Leave a Comment