32.9 C
Senior Writer and partner

How to install Yarn on OpenSUSE 15.2?

The development of web applications is a process that many people don’t know and think is something very easy to do. However, those of us who have developed applications know that it is not and that tools are needed to speed up the process. Especially in the web environment that requires many libraries of all kinds. This includes Javascript whose dependency management has been monopolized by NVM. However, the company Facebook in union with after big have created yarn. A javascript dependency manager that promises to be fast and reliable. In this post, you will learn how to install Yarn on OpenSUSE 15.2

Yarn is a Javascript dependency manager that stands out for being fast, secure and reliable. It is presented to us as the most solid alternative to NPM. In addition, it is open source and it has the protection of a giant like Facebook what guarantees us solidity and robustness of the project. Some of its characteristics are the following:

  • Fast: Yarn caches every package it has downloaded.
  • Reliable: Using a detailed but concise lockfile format and a deterministic algorithm for install operations.
  • Secure: Yarn uses checksums to verify the integrity of every installed package before its code is executed.

There are also other features such as its efficiency in the use of the network as well as offline mode. All this can be found on the Github site of Yarn.

Install Yarn on OpenSUSE 15.2

Unfortunately, Yarn is not present in the official distribution repositories. You can check this by running the following command

- Advertisement -
sudo zypper search yarn

You will get an output screen like the following:

Loading repository data...
Reading installed packages...
No matching items found.

So we have to use another method to perform the installation.

The easiest and recommended method is to use the compiled Linux binary that we can download via the curl command.

So, install the curl tool by running the following command:

sudo zypper in curl

After that, download and install Yarn

curl -o- -L https://yarnpkg.com/install.sh | bash

And to make Yarn available from any prompt location, run the following command:

source ~/.bashrc

Now you can use Yarn for whatever you want, for example, to check the installed version of Yarn

yarn -v

So, enjoy it.


Yarn is a great alternative to NPM to manage the dependencies of our web projects. So it becomes essential if we are web developers or we are learning in it.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article