<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>yarn Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/yarn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 03 Mar 2021 20:53:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Yarn on OpenSUSE 15.2?</title>
		<link>https://www.osradar.com/install-yarn-opensuse/</link>
					<comments>https://www.osradar.com/install-yarn-opensuse/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 04 Mar 2021 01:52:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28942</guid>

					<description><![CDATA[<p>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 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-opensuse/">How to install Yarn on OpenSUSE 15.2?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><br><br>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</p>



<p><a href="https://yarnpkg.com/">Yarn</a> 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:</p>



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



<p>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.</p>



<h2 id="install-yarn-on-opensuse-15.2"><a href="#install-yarn-on-opensuse-15.2" name="install-yarn-on-opensuse-15.2"></a>Install Yarn on OpenSUSE 15.2</h2>



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



<pre class="wp-block-preformatted">sudo zypper search yarn</pre>



<p>You will get an output screen like the following:</p>



<pre class="wp-block-preformatted">Loading repository data...
Reading installed packages...
No matching items found.</pre>



<p>So we have to use another method to perform the installation.</p>



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



<p>So, install the <code><a href="https://www.osradar.com/how-to-install-curl-in-windows/" target="_blank" rel="noreferrer noopener">curl</a></code> tool by running the following command:</p>



<pre class="wp-block-preformatted">sudo zypper in curl</pre>



<p>After that, download and install Yarn</p>



<pre class="wp-block-preformatted">curl -o- -L https://yarnpkg.com/install.sh | bash</pre>



<p>And to make Yarn available from any prompt location, run the following command:</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



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



<pre class="wp-block-preformatted">yarn -v
1.22.5</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>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.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-opensuse/">How to install Yarn on OpenSUSE 15.2?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-yarn-opensuse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Yarn on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-yarn-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-yarn-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 03 May 2020 16:28:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20006</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Yarn on Ubuntu 20.04. It is the most reliable and the fast packages managements system with high security for the Node.js applications. It provides the facility of caching the downloaded packages on your system and then from the cache memory, reuse them when needed. So, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-yarn-on-ubuntu-20-04/">How To Install Yarn on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that <a href="https://www.osradar.com/?p=20006">how to install Yarn on Ubuntu 20.04</a>. It is the most reliable and the fast packages managements system with high security for the Node.js applications. It provides the facility of caching the downloaded packages on your system and then from the cache memory, reuse them when needed. So, you can save the time if you want to download the any package again or you need to download it many times. So, in this tutorial we&#8217;ll look over the 3 ways to install the Yarn on our Ubuntu 20.04 system. Simply follow the below steps for an easy installation.</p>



<ul><li><strong>Adding Yarn Repository</strong></li><li><strong> Installing Yarn with NPM</strong></li><li><strong> Script installation of Yarn</strong></li></ul>



<p>We&#8217;ll see all these methods you can choose your desired one for installation purposes.</p>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>First of all update your system to the latest one before going to install any package on your system. Type the below command in your terminal.</p>



<pre class="wp-block-verse">sudo apt udpate</pre>



<h3><strong>Step 2: Install Yarn with Repository on Ubuntu 20.04</strong></h3>



<p>To install the Yarn with the repository on your system you have to add the repository first provided by the Yarn for Linux systems. Run the following command to import the GPG key for verification of Yarn package.</p>



<pre class="wp-block-verse">curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -</pre>



<p>Then type the given command to enable the Yarn repository.</p>



<pre class="wp-block-verse">echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list</pre>



<p>Now, update the system and install yarn with the given command. And press <strong>Y</strong> when prompted.</p>



<pre class="wp-block-verse">sudo apt update <br>sudo apt install yarn</pre>



<p>Output: </p>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-verse">sabi@Ubuntu:~$ sudo apt install yarn<br> Reading package lists… Done<br> Building dependency tree       <br> Reading state information… Done<br> The following packages were automatically installed and are no longer required:<br>   acl apg colord-data gnome-control-center-faces<br>   gnome-online-accounts hplip-data libcolord-gtk1 libcolorhug2<br>   libgsound0 libgssdp-1.2-0 libgupnp-1.2-0 libgupnp-av-1.0-2<br>   libgupnp-dlna-2.0-3 libieee1284-3 libimagequant0 libmediaart-2.0-0<br>   librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2<br>   librygel-server-2.6-2 libsane-common libsnmp-base libwebpmux3<br>   mobile-broadband-provider-info network-manager-gnome<br>   printer-driver-postscript-hp python3-macaroonbakery python3-nacl<br>   python3-olefile python3-pexpect python3-pil python3-protobuf<br>   python3-ptyprocess python3-pymacaroons python3-renderpm<br>   python3-reportlab python3-reportlab-accel python3-rfc3339<br>   python3-tz rygel<br> Use 'sudo apt autoremove' to remove them.<br> The following additional packages will be installed:<br>   libc-ares2 libnode64 nodejs nodejs-doc<br> Suggested packages:<br>   npm<br> The following NEW packages will be installed:<br>   libc-ares2 libnode64 nodejs nodejs-doc yarn<br> 0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.<br> Need to get 7,698 kB of archives.<br> After this operation, 36.1 MB of additional disk space will be used.<br> Do you want to continue? [Y/n] y</pre>



<p>Verify the installed version by hitting the following command.</p>



<pre class="wp-block-verse">sabi@Ubuntu:~$ yarn --version<br> 1.22.4</pre>



<h3><strong>Step 3: Installing Yarn with NPM on Ubuntu 20.04</strong></h3>



<p>Fire the following command to install the Yarn on Ubuntu 20.04 with NPM.</p>



<pre class="wp-block-verse">sudo apt install npm<br>npm install -g yarn</pre>



<p>-g: it will install the yarn globally on our system.</p>



<h3><strong>Step 4: Script installation of Yarn on Ubuntu 20.04</strong></h3>



<p>Install Yarn with script by hitting the below commands.</p>



<pre class="wp-block-verse">sudo apt install curl -y<br>curl -o- -L https://yarnpkg.com/install.sh | bash</pre>



<p>Finally source the file.</p>



<pre class="wp-block-verse">source ~/.bashrc</pre>



<p>That&#8217;s all! </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-yarn-on-ubuntu-20-04/">How To Install Yarn on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-yarn-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install yarn on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-install-yarn-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-install-yarn-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 28 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[freebasd 12]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18459</guid>

					<description><![CDATA[<p>In the development of any application, there are dependencies that we have to handle. With time, these can become a problem so it is convenient to have a tool that does it for us. In the case of Javascript, we have a very good one. So, in this post, I will show you how to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-yarn-freebsd-12/">How to install yarn on FreeBSD 12?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In the development of any application, there are dependencies that we have to handle. With time, these can become a problem so it is convenient to have a tool that does it for us. In the case of Javascript, we have a very good one. So, in this post, I will show you how to install Yarn on FreeBSD 12.</p>
<p><a href="https://yarnpkg.com">Yarn</a> 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 <a href="https://www.osradar.com/facebook-vulnerability-affecting-50-million-users/">Facebook</a> what guarantees us solidity and robustness of the project. Some of its characteristics are the following:</p>
<ul>
<li>Fast: Yarn caches every package it has downloaded.</li>
<li>Reliable: Using a detailed but concise lockfile format and a deterministic algorithm for install operations.</li>
<li>Secure: Yarn uses checksums to verify the integrity of every installed package before its code is executed.</li>
</ul>
<p>There are also other features such as its efficiency in the use of the network as well as an offline mode. All this can be found on the <a href="https://github.com/yarnpkg/yarn">Github site</a> of Yarn.</p>
<p>So, let us start.</p>
<h2>Install Yarn on FreeBSD 12</h2>
<p>For this tutorial, you must have sudo enabled, so this is the first step.</p>
<p><a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noopener noreferrer">How to enable sudo on FreeBSD 12?</a></p>
<p>After you can use sudo, you can continue.</p>
<p>The FreeBSD 12 repositories are quite large, so we will first look for yarn in them.</p>
<p>Open a terminal and run the following:</p>
<pre>:~$ sudo pkg search yarn
yarn-1.19.1                    Package manager for node, alternative to npm
yarn-node10-1.19.1             Package manager for node, alternative to npm
yarn-node12-1.19.1             Package manager for node, alternative to npm
yarn-node8-1.19.1              Package manager for node, alternative to npm</pre>
<p><figure id="attachment_18494" aria-describedby="caption-attachment-18494" style="width: 849px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18494" src="https://www.osradar.com/wp-content/uploads/2020/02/1-17.png" alt="1.- Searching for yarn" width="849" height="181" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-17.png 849w, https://www.osradar.com/wp-content/uploads/2020/02/1-17-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-17-768x164.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-17-696x148.png 696w" sizes="(max-width: 849px) 100vw, 849px" /><figcaption id="caption-attachment-18494" class="wp-caption-text">1.- Searching for yarn</figcaption></figure></p>
<p>As you can see in the picture, yarn is in the official repositories. And also, they have several versions according to the version of NodeJS we have installed.</p>
<p>However, to install it, just use the following command:</p>
<pre>:~$ sudo pkg install yarn
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 6 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	yarn: 1.19.1
	node: 13.3.0
	libnghttp2: 1.40.0
	c-ares: 1.15.0_1
	libuv: 1.34.0
	icu: 65.1,1

Number of packages to be installed: 6

The process will require 92 MiB more space.
19 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>
<p><figure id="attachment_18495" aria-describedby="caption-attachment-18495" style="width: 966px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18495" src="https://www.osradar.com/wp-content/uploads/2020/02/2-16.png" alt="2.- Install Yarn on FreeBSD 12" width="966" height="360" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-16.png 966w, https://www.osradar.com/wp-content/uploads/2020/02/2-16-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-16-768x286.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-16-696x259.png 696w" sizes="(max-width: 966px) 100vw, 966px" /><figcaption id="caption-attachment-18495" class="wp-caption-text">2.- Install Yarn on FreeBSD 12</figcaption></figure></p>
<p>Once it is installed, you can check the installed version.</p>
<pre>:~$ yarn --version</pre>
<p><figure id="attachment_18496" aria-describedby="caption-attachment-18496" style="width: 789px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18496" src="https://www.osradar.com/wp-content/uploads/2020/02/3-13.png" alt="3.- Yarn version" width="789" height="130" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-13.png 789w, https://www.osradar.com/wp-content/uploads/2020/02/3-13-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-13-768x127.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-13-696x115.png 696w" sizes="(max-width: 789px) 100vw, 789px" /><figcaption id="caption-attachment-18496" class="wp-caption-text">3.- Yarn version</figcaption></figure></p>
<p>This indicates that yarn is ready for action.</p>
<h2>Basic use of Yarn</h2>
<p>Now we will look at some basic steps in the use of yarn. I&#8217;m going to create a sample project, and for that I&#8217;ll first create a new dedicated folder.</p>
<pre>:~$ mkdir project</pre>
<p>Now I&#8217;ll access it:</p>
<pre>cd project/</pre>
<p>And within it, I initiate the yarn project. This will make me ask some questions about the configuration of the project. Nothing complicated.</p>
<pre>:~$ yarn init
yarn init v1.19.1
question name (project): Example
question version (1.0.0): 
question description: This is an example
question entry point (index.js): 
question repository url: https://www.osradar.com/
question author: Angelo
question license (MIT): 
question private: no
success Saved package.json
Done in 34.27s.</pre>
<p><figure id="attachment_18497" aria-describedby="caption-attachment-18497" style="width: 842px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18497" src="https://www.osradar.com/wp-content/uploads/2020/02/4-13.png" alt="4.- Creating a new project with Yarn" width="842" height="290" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-13.png 842w, https://www.osradar.com/wp-content/uploads/2020/02/4-13-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-13-768x265.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-13-696x240.png 696w" sizes="(max-width: 842px) 100vw, 842px" /><figcaption id="caption-attachment-18497" class="wp-caption-text">4.- Creating a new project with Yarn</figcaption></figure></p>
<p>If you want to add a new dependency, just use the following command:</p>
<pre>:~$ yarn add [name]</pre>
<p>Or to eliminate it:</p>
<pre>:~$ yarn remove [name]</pre>
<p>And from the project folder, we can install the rooms:</p>
<pre>:~$ yarn</pre>
<p>And so we can continue with the installation.</p>
<h2>Conclusion</h2>
<p>Yarn is a fantastic tool for Javascript developers and thus makes it easier to create functional web applications. Now you know how to install it on FreeBSD 12.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-yarn-freebsd-12/">How to install yarn on FreeBSD 12?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-yarn-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Yarn on Debian 10?</title>
		<link>https://www.osradar.com/install-yarn-debian-10/</link>
					<comments>https://www.osradar.com/install-yarn-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 22 Jan 2020 00:15:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17562</guid>

					<description><![CDATA[<p>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 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-debian-10/">How to install Yarn on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>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 Debian 10.</p>



<p><a href="https://yarnpkg.com">Yarn</a> 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 <a href="https://www.osradar.com/facebook-vulnerability-affecting-50-million-users/">Facebook</a> what guarantees us solidity and robustness of the project. Some of its characteristics are the following:</p>



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



<p>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 <a href="https://github.com/yarnpkg/yarn">Github site</a> of Yarn.</p>



<h2>Install Yarn on Debian 10</h2>



<p>The installation of Yarn becomes quite easy, thanks to the fact that we have been given a package repository for Debian. This not only makes the installation easy but also allows us to keep it updated.</p>



<p>However, there are some necessary packages to be installed:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install curl gpg</pre>



<p>As you can see, I&#8217;m using sudo. If you don&#8217;t have it enabled you can do it with the following tutorial:</p>



<p><a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" target="_blank" rel="noreferrer noopener" aria-label="How to enable sudo on Debian 10? (opens in a new tab)">How to enable sudo on Debian 10?</a></p>



<p>Now we can execute the following command to add the GPG key to the repository:</p>



<pre class="wp-block-preformatted">:~$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
OK</pre>



<p>And then, it&#8217;s time to add the Yarn repository for Debian 10.</p>



<pre class="wp-block-preformatted">:~$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
deb https://dl.yarnpkg.com/debian/ stable main</pre>



<p>After the repository and its GPG key have been correctly added, the APT cache must be refreshed:</p>



<pre class="wp-block-preformatted">:~$ sudo apt update</pre>



<p>And finally, install Yarn on Debian 10 with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install yarn </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="919" height="269" src="https://www.osradar.com/wp-content/uploads/2020/01/1-8.png" alt="1.- Install Yarn on Debian 10" class="wp-image-17564" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-8.png 919w, https://www.osradar.com/wp-content/uploads/2020/01/1-8-300x88.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-8-768x225.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-8-696x204.png 696w" sizes="(max-width: 919px) 100vw, 919px" /><figcaption>1.- Install Yarn on Debian 10</figcaption></figure>



<p>As you can see in the picture, one dependency of Yarn is NodeJS and NPM. In case you already have it installed, you can install yarn with the following command: </p>



<pre class="wp-block-preformatted">:~$ sudo apt-get install --no-install-recommends yarn</pre>



<p>Finally, you can check that everything went well, by showing Yarn&#8217;s version.</p>



<pre class="wp-block-preformatted">:~$ yarn -v</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="690" height="81" src="https://www.osradar.com/wp-content/uploads/2020/01/2-7.png" alt="2.- Yarn version" class="wp-image-17565" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-7.png 690w, https://www.osradar.com/wp-content/uploads/2020/01/2-7-300x35.png 300w" sizes="(max-width: 690px) 100vw, 690px" /><figcaption>2.- Yarn version</figcaption></figure>



<p>And that&#8217;s it, Yarn is ready for the job.</p>



<h2>Conclusion</h2>



<p>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.</p>



<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-debian-10/">How to install Yarn on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-yarn-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Yarn on OpenSUSE 15.1?</title>
		<link>https://www.osradar.com/install-yarn-opensuse-15-1/</link>
					<comments>https://www.osradar.com/install-yarn-opensuse-15-1/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 29 Dec 2019 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[open suse]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16882</guid>

					<description><![CDATA[<p>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 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-opensuse-15-1/">How to install Yarn on OpenSUSE 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>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.</p>



<p><a rel="noreferrer noopener" href="https://yarnpkg.com/lang/en/" target="_blank">Yarn</a> 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.</p>



<p>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 <strong>key features are security and dependency resolution speed</strong>.</p>



<h2>Install Yarn on OpenSUSE 15.1</h2>



<p>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.</p>



<p><a href="https://www.osradar.com/how-to-install-nodejs-on-opensuse-15/" target="_blank" rel="noreferrer noopener" aria-label="How to install NodeJS on OpenSUSE 15.1? (opens in a new tab)">How to install NodeJS on OpenSUSE 15.1?</a></p>



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



<pre class="wp-block-preformatted">:~$ sudo zypper search yarn</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="763" height="170" src="https://www.osradar.com/wp-content/uploads/2019/12/1-11.png" alt="1.- Yarn is not in the OpenSUSE repository" class="wp-image-16883" srcset="https://www.osradar.com/wp-content/uploads/2019/12/1-11.png 763w, https://www.osradar.com/wp-content/uploads/2019/12/1-11-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/1-11-696x155.png 696w" sizes="(max-width: 763px) 100vw, 763px" /><figcaption>1.- Yarn is not in the OpenSUSE repository</figcaption></figure>



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



<p>First, make sure you have curl installed.</p>



<pre class="wp-block-preformatted">:~$ sudo zypper in curl</pre>



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



<pre class="wp-block-preformatted">:~$ curl -o- -L https://yarnpkg.com/install.sh | bash</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="482" src="https://www.osradar.com/wp-content/uploads/2019/12/2-10-1024x482.png" alt="2.- Install yarn on OpenSUSE 15.1" class="wp-image-16884" srcset="https://www.osradar.com/wp-content/uploads/2019/12/2-10-1024x482.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/2-10-300x141.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/2-10-768x361.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/2-10-696x328.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/2-10-1068x503.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/2-10-892x420.png 892w, https://www.osradar.com/wp-content/uploads/2019/12/2-10.png 1158w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Install yarn on OpenSUSE 15.1</figcaption></figure>



<p>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.</p>



<p>Once you&#8217;ve done that, you can show the installed version and you can use it:</p>



<pre class="wp-block-preformatted">:~$ yarn -v</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="685" height="111" src="https://www.osradar.com/wp-content/uploads/2019/12/3-11.png" alt="3.- Yarn on OpenSUSE 15.1" class="wp-image-16885" srcset="https://www.osradar.com/wp-content/uploads/2019/12/3-11.png 685w, https://www.osradar.com/wp-content/uploads/2019/12/3-11-300x49.png 300w" sizes="(max-width: 685px) 100vw, 685px" /><figcaption>3.- Yarn on OpenSUSE 15.1</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>If you are a web developer you need to know and use many tools to do so. That&#8217;s why it&#8217;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.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-opensuse-15-1/">How to install Yarn on OpenSUSE 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-yarn-opensuse-15-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Yarn on CentOS 8?</title>
		<link>https://www.osradar.com/install-yarn-centos-8/</link>
					<comments>https://www.osradar.com/install-yarn-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 28 Sep 2019 13:31:35 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[yarn]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13903</guid>

					<description><![CDATA[<p>The development of web applications is a process that many people don&#8217;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 require many libraries of all [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-centos-8/">How to install Yarn on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The development of web applications is a process that many people don&#8217;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 require 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 CentOS 8.</p>
<p><a href="https://yarnpkg.com/lang/en/" target="_blank" rel="noopener noreferrer">Yarn</a> 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&#8217;s done manually but it&#8217;s not optimal, that&#8217;s why Yarn solves this problem.</p>


<p>Yarn&#8217;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&#8217;s <strong>key features are security and dependency resolution speed</strong>.</p>



<h2>Install Yarn on CentOS 8</h2>



<p>The first requirement is to install NodeJS. Remember that Yarn uses it as an engine in its operation.</p>



<p>Read, <a href="https://www.osradar.com/install-nodejs-on-centos-8-rhel-8-oracle-linux-8/" target="_blank" rel="noreferrer noopener" aria-label="How to install NodeJS on CentOS 8? (opens in a new tab)">How to install NodeJS on CentOS 8?</a></p>



<p>In that post, you have several methods. Choose the best one for you. Then, continue the tutorial.</p>



<p>After this, the Yarn repository must be added. This is the fastest and easiest way to install it. It is also the safest way.</p>



<p>So, open a terminal and run:</p>



<pre class="wp-block-preformatted">:~$ su
:~# curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo</pre>



<figure class="wp-block-image"><img loading="lazy" width="1021" height="180" src="https://www.osradar.com/wp-content/uploads/2019/09/1-29.png" alt="1.- Add the Yarn repository" class="wp-image-14035" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-29.png 1021w, https://www.osradar.com/wp-content/uploads/2019/09/1-29-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-29-768x135.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-29-696x123.png 696w" sizes="(max-width: 1021px) 100vw, 1021px" /><figcaption>1.- Add the Yarn repository</figcaption></figure>



<p>Now, you can install Yarn on CentOS 8 by running the following command:</p>



<pre class="wp-block-preformatted">:~# dnf install yarn</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="268" src="https://www.osradar.com/wp-content/uploads/2019/09/2-28-1024x268.png" alt="2.- Install yarn on CentOS 8" class="wp-image-14036" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-28-1024x268.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/2-28-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-28-768x201.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-28-696x182.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/2-28-1068x280.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/2-28.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Install yarn on CentOS 8</figcaption></figure>



<p>Now, check the program version.</p>



<pre class="wp-block-preformatted">:~# yarn -v</pre>



<figure class="wp-block-image"><img loading="lazy" width="870" height="136" src="https://www.osradar.com/wp-content/uploads/2019/09/3-25.png" alt="3.- Yarn on CentOS 8" class="wp-image-14037" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-25.png 870w, https://www.osradar.com/wp-content/uploads/2019/09/3-25-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-25-768x120.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-25-696x109.png 696w" sizes="(max-width: 870px) 100vw, 870px" /><figcaption>3.- Yarn on CentOS 8</figcaption></figure>



<p>Now, you can start to use yarn.</p>



<h2>Conclusion</h2>



<p>In this post, we have installed Yarn on CentOS 8. With this Javascript dependencies manager facilitates the creation of web projects that use many libraries as components of the application. All this in a fast and easy way.</p>



<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel (opens in a new tab)">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yarn-centos-8/">How to install Yarn on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-yarn-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
