How to install Yarn on OpenSUSE 15.1?

Windows Articles

How to access System in Windows 10

Perhaps the title of this post is misleading. In previous versions of Windows, it was enough to enter the Control Panel and from there,...

Microsoft reduces the fragmentation of Windows 10

Windows 10 20H2 has been released as a minor operating system update. As a result, it has managed to reduce platform errors. In addition,...

How to install Nginx and PHP on FreeBSD?

Hello, friends. FreeBSD is a secure system even more than Linux, that's why it's used as the main server. And a server has to...

How to enable local port forwarding using Ubuntu 20.04 and ssh

SSH, a very popular tool found almost with every IT guy. Commonly, when we talk about the insecure network for data, ssh is the...

How to use CHKDSK in Windows 10

Hello! It is very important to ensure the integrity of the hard disk in the computer. Since it is an essential element for the...
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 access System in Windows 10

Perhaps the title of this post is misleading. In previous versions of Windows, it was enough to enter the Control Panel and from there,...

Microsoft reduces the fragmentation of Windows 10

Windows 10 20H2 has been released as a minor operating system update. As a result, it has managed to reduce platform errors. In addition,...

How to install Nginx and PHP on FreeBSD?

Hello, friends. FreeBSD is a secure system even more than Linux, that's why it's used as the main server. And a server has to...

How to enable local port forwarding using Ubuntu 20.04 and ssh

SSH, a very popular tool found almost with every IT guy. Commonly, when we talk about the insecure network for data, ssh is the...

How to use CHKDSK in Windows 10

Hello! It is very important to ensure the integrity of the hard disk in the computer. Since it is an essential element for the...
x