{"id":1130,"date":"2020-01-29T13:01:56","date_gmt":"2020-01-29T19:01:56","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=1130"},"modified":"2020-01-29T13:01:56","modified_gmt":"2020-01-29T19:01:56","slug":"how-to-install-yarn-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/","title":{"rendered":"How to Install Yarn on Ubuntu 16.04"},"content":{"rendered":"<p>In this tutorial, we will show you how to install Yarn on an <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">Ubuntu 16.04 Cloud VPS<\/a>, as well as go over some of the basics with using Yarn.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1138\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/set-up-yarn-package-manager-on-ubuntu-cloud-vps.jpg\" alt=\"\" width=\"140\" height=\"73\" \/>Yarn is a Javascript package manager, serving as an alternative to NPM. It is an open-source project and was built by a team at Facebook. There are many advantages when using Yarn, such as:<\/p>\n<ul>\n<li>Offline Installation<\/li>\n<li>Faster download, packages are installed in parallel<\/li>\n<li>Support for multiple registries<\/li>\n<\/ul>\n<p>As you can see, the interesting feature is the offline installation. Once you have installed a package, it will be cached and we can create another project from scratch without being connected to the internet, which in turn will save our bandwidth usage.<br \/>\nUsually, a project requires some dependencies and every time we install them to start a project, the &#8220;npm install&#8221; command would consume your\u00a0bandwidth. When using Yarn, the download is done just once. Let&#8217;s begin installing Yarn.<\/p>\n<p><!--more--><\/p>\n<h2>Prerequisites:<\/h2>\n<ul>\n<li>Ubuntu 16.04 Cloud VPS<\/li>\n<li>A system user with root privileges, or access to the root user account<\/li>\n<\/ul>\n<h2>Step 1. Log in to your Server via SSH and Update the System:<\/h2>\n<pre>ssh root@server_ip -p port_number<\/pre>\n<p>Make sure to replace &#8220;<span style=\"color: #ff0000;\">server_ip<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">port_number<\/span>&#8221; with their respective values.<\/p>\n<p>Once you are logged in, run the following command to and make sure all installed packages are updated to the latest available version<\/p>\n<pre>apt-get update &amp;&amp; apt-get upgrade<\/pre>\n<h2>Step 2. Install Yarn<\/h2>\n<p>There are several ways to install Yarn &#8211; each of which we&#8217;ll be going through in this tutorial.<\/p>\n<h3>Method 1: Install Yarn Using the APT Package Manager<\/h3>\n<p>This is the easiest way to install Yarn. First, we need to add the Yarn repository. Use the following command to add the Yarn repository and import the repository&#8217;s GPG key.<\/p>\n<pre>echo &quot;deb https:\/\/dl.yarnpkg.com\/debian\/ stable main&quot; | tee \/etc\/apt\/sources.list.d\/yarn.list\r\ncurl -sS https:\/\/dl.yarnpkg.com\/debian\/pubkey.gpg | apt-key add -<\/pre>\n<p>Once added, we can update the package list and install Yarn.<\/p>\n<pre>apt update\r\napt install yarn<\/pre>\n<p>Now, let&#8217;s check the Yarn version that we just installed:<\/p>\n<pre>yarn -v<\/pre>\n<p>If you see the following message when checking yarn version, it means you don&#8217;t have Node.js installed on your system.<\/p>\n<pre>Yarn requires Node.js 4.0 or higher to be installed.<\/pre>\n<p>To install Node.js, you can run the following command:<\/p>\n<pre>apt install nodejs<\/pre>\n<p>Now, you can run the command to check the Yarn version again:<\/p>\n<pre>yarn -v<\/pre>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1134\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/yarn_version.png\" alt=\"\" width=\"207\" height=\"32\" \/><\/p>\n<p>Now you have Yarn installed on your server using the APT package manager.<\/p>\n<h3>Method 2: Install Yarn Using the Official Installation Script<\/h3>\n<p>The Yarn team also provides us with a shell script to do the installation without having to go through the hassle of adding a repository just for one package.<\/p>\n<pre>curl -o- -L https:\/\/yarnpkg.com\/install.sh | bash<\/pre>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1135\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/install_yarn_script.png\" alt=\"\" width=\"1031\" height=\"612\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/install_yarn_script.png 1031w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/install_yarn_script-470x279.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/install_yarn_script-970x576.png 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/install_yarn_script-768x456.png 768w\" sizes=\"(max-width: 1031px) 100vw, 1031px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This installation procedure will put all files under the user&#8217;s home directory, so it&#8217;s only available for the user you ran the script from.<\/p>\n<h3>Method 3: Install Yarn Using npm<\/h3>\n<p>You can use npm command to install Yarn globally with this command, however, this installation method is not recommended by the Yarn team:<\/p>\n<pre>npm install yarn -g\r\nThe following message is a note on Yarn installation https:\/\/yarnpkg.com\/en\/docs\/install#alternatives-stable<\/pre>\n<p><strong>Note:<\/strong>\u00a0Installation of Yarn via npm is generally <strong>not<\/strong> recommended. When installing Yarn with Node-based package managers, the package is not signed, and the only integrity check performed is a basic SHA1 hash, which is a security risk when installing system-wide apps.<\/p>\n<h2>How to Use Yarn<\/h2>\n<p>Now that you have successfully installed Yarn on your Ubuntu 16.04 Cloud VPS, it is time to use Yarn.<\/p>\n<h3>Create a Project<\/h3>\n<p>You can create a new Yarn project with this command:<\/p>\n<pre>yarn init &lt;span style=&quot;color: #ff0000;&quot;&gt;new_project_name&lt;\/span&gt;<\/pre>\n<p>You can replace <span style=\"color: #ff0000;\">new_project_name<\/span> with your desired project name.<\/p>\n<p>Once issued, you will be prompted with several questions, you can answer them with their default values by pressing the [ENTER] key.<\/p>\n<pre>yarn init v1.12.3\r\nquestion name (root):\r\nquestion version (1.0.0):\r\nquestion description:\r\nquestion entry point (index.js):\r\nquestion repository url:\r\nquestion author:\r\nquestion license (MIT):\r\nquestion private:\r\nsuccess Saved package.json\r\nDone in 15.75s.\r\n<\/pre>\n<p>Now, under your working directory, you will see a <code>package.json<\/code> file.<\/p>\n<h3>Add a Dependency<\/h3>\n<p>To add a dependency to your new Yarn project, you can issue this command:<\/p>\n<pre>yarn add package_name<\/pre>\n<h3>Upgrade a Dependency<\/h3>\n<p>To upgrade the dependency, you can invoke this command:<\/p>\n<pre>yarn upgrade package_name<\/pre>\n<h3>Install Dependencies<\/h3>\n<p>To install the dependencies stated in your <code>package.json<\/code> file, you can run this command under your working directory:<\/p>\n<pre>yarn<\/pre>\n<p>or<\/p>\n<pre>yarn install<\/pre>\n<p>That is it. Yarn has been successfully installed on your Ubuntu 16.04 server, and now you know a few of the basic commands needed to use it.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1139\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/getting-expert-support-24-7-for-yarn-server-maintenance-cloud-vps.jpg\" alt=\"\" width=\"140\" height=\"73\" \/>Of course, you don\u2019t have to install Yarn on Ubuntu 16.04 if you use one of our <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">Cloud VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Yarn on Ubuntu 16.04 for you. All of our plans include fully-managed support that&#8217;s available 24\u00d77 &#8211; just ask for help and we will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on how to install Yarn on Ubuntu 16.04, please share it with your friends on the social networks using the share buttons, or simply leave a reply below. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a Javascript package manager, serving as an alternative to NPM. It is an open-source project and was built by a team at Facebook. There &#8230; <a title=\"How to Install Yarn on Ubuntu 16.04\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/\" aria-label=\"More on How to Install Yarn on Ubuntu 16.04\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1137,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1130","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Yarn on Ubuntu 16.04 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Yarn on Ubuntu 16.04 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-29T19:01:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-yarn-on-ubuntu16.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Install Yarn on Ubuntu 16.04\",\"datePublished\":\"2020-01-29T19:01:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/\"},\"wordCount\":753,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-yarn-on-ubuntu16.04.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/\",\"name\":\"How to Install Yarn on Ubuntu 16.04 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-yarn-on-ubuntu16.04.jpg\",\"datePublished\":\"2020-01-29T19:01:56+00:00\",\"description\":\"In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-yarn-on-ubuntu16.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/how-to-install-yarn-on-ubuntu16.04.jpg\",\"width\":750,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-yarn-on-ubuntu-16-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Yarn on Ubuntu 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Yarn on Ubuntu 16.04 | LinuxCloudVPS Blog","description":"In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Yarn on Ubuntu 16.04 | LinuxCloudVPS Blog","og_description":"In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2020-01-29T19:01:56+00:00","og_image":[{"width":750,"height":360,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-yarn-on-ubuntu16.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Install Yarn on Ubuntu 16.04","datePublished":"2020-01-29T19:01:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/"},"wordCount":753,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-yarn-on-ubuntu16.04.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/","name":"How to Install Yarn on Ubuntu 16.04 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-yarn-on-ubuntu16.04.jpg","datePublished":"2020-01-29T19:01:56+00:00","description":"In this tutorial, we will show you how to install Yarn on an Ubuntu 16.04 Cloud VPS, as well as go over some of the basics with using Yarn. Yarn is a","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-yarn-on-ubuntu16.04.jpg","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2020\/01\/how-to-install-yarn-on-ubuntu16.04.jpg","width":750,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-yarn-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Yarn on Ubuntu 16.04"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=1130"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1130\/revisions"}],"predecessor-version":[{"id":1150,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1130\/revisions\/1150"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/1137"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=1130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=1130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}