<?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>freebasd 12 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/freebasd-12/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 24 Feb 2020 00:28:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<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>
<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>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>
<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>Once it is installed, you can check the installed version.</p>
<pre>:~$ yarn --version</pre>
<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>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>
<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>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>
	</channel>
</rss>
