In this tutorial, you will learn how to install Yarn in Ubuntu. Yarn is a Javascript package manager that allows you to manage javascript packages in your Ubuntu machine. When it comes to installing Yarn in Ubuntu or Debian based distros, the installation can be done via two different methods. In the first method, we'll be installing Yarn via the official repository, in the second method we'll be installing Yarn via corepack. Method 1: Install Yarn in Ubuntu via official repository