How to install Yarn on OpenSUSE 15.1?

Windows Articles

How to install SQLite on OpenSUSE 15.2 / 15.1?

There are many good database management systems, but they are not all the same. And the fact that they are not, means...

How to detect port scanning and private IP access with Behave

Hello! Security when surfing the internet is a very serious issue. Consequently, the precautions we take are very important. Moreover, web browsers...

How to install LAMP on OpenSUSE 15.2 / 15.1?

It is increasingly common to find small companies that decide to use the SUSE ecosystem for their servers. It's an unsurprising decision because OpenSUSE...

How to use Mytop on Linux?

We already know that both MySQL and MariaDB are among the most popular database managers out there. They have earned this with...

How to activate the automatic screen saver in Windows 10

Hello! Undoubtedly the time we spend in front of a computer has grown lately. In fact, in these times of pandemic, more...
angeloma
angeloma
Senior Writer and partner

The development of web applications is a process that many people do not 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.1.

Yarn is a new JavaScript package installer and dependency manager released by Facebook. Other companies such as Google have also collaborated. With yarn, the problems of library dependencies that a web project requires are solved. Normally, it’s done manually but it’s not optimal, that’s why Yarn solves this problem.

Yarn’s performance is quite similar to that of NPM which is its direct competitor. However, the performance is somewhat superior at Yarn. Some of Yarn’s key features are security and dependency resolution speed.

Install Yarn on OpenSUSE 15.1

Yarn requires NodeJS to work. So the first step is to install it. So I recommend you to read our post about NodeJS on OpenSUSE.

How to install NodeJS on OpenSUSE 15.1?

If we use zypper to search for the yarn package, we will notice that it is not in the official repositories.

:~$ sudo zypper search yarn
1.- Yarn is not in the OpenSUSE repository
1.- Yarn is not in the OpenSUSE repository

However, we can use a script to install the latest available version of Yarn.

First, make sure you have curl installed.

:~$ sudo zypper in curl

Then, run this command which will download and install the latest available version of yarn.

:~$ curl -o- -L https://yarnpkg.com/install.sh | bash
2.- Install yarn on OpenSUSE 15.1
2.- Install yarn on OpenSUSE 15.1

As you can see at the end of the screen output, you just have to open a new terminal session so you can use yarn without problems.

Once you’ve done that, you can show the installed version and you can use it:

:~$ yarn -v
3.- Yarn on OpenSUSE 15.1
3.- Yarn on OpenSUSE 15.1

So, enjoy it.

Conclusion

If you are a web developer you need to know and use many tools to do so. That’s why it’s yarn to excel in the management of dependencies and their security. So today you have learned how to install it on OpenSUSE 15.1.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install SQLite on OpenSUSE 15.2 / 15.1?

There are many good database management systems, but they are not all the same. And the fact that they are not, means...

How to detect port scanning and private IP access with Behave

Hello! Security when surfing the internet is a very serious issue. Consequently, the precautions we take are very important. Moreover, web browsers...

How to install LAMP on OpenSUSE 15.2 / 15.1?

It is increasingly common to find small companies that decide to use the SUSE ecosystem for their servers. It's an unsurprising decision because OpenSUSE...

How to use Mytop on Linux?

We already know that both MySQL and MariaDB are among the most popular database managers out there. They have earned this with...

How to activate the automatic screen saver in Windows 10

Hello! Undoubtedly the time we spend in front of a computer has grown lately. In fact, in these times of pandemic, more...