22 C
Texas
angeloma
Senior Writer and partner

How to install Yarn on OpenSUSE 15.1?

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.

- Advertisement -

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.

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article