How to Install Yarn on Debian 10 Buster


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 | sudo apt-key add -

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

echo "deb 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

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


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
I am the Co-founder of, 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