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.
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
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
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
So, enjoy it.
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.