{"id":3720,"date":"2019-07-21T09:48:00","date_gmt":"2019-07-21T06:48:00","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3720"},"modified":"2019-07-21T09:48:01","modified_gmt":"2019-07-21T06:48:01","slug":"install-yarn-on-debian-10","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-yarn-on-debian-10\/","title":{"rendered":"How to Install Yarn on Debian 10 Buster"},"content":{"rendered":"\n<p>In this guide, we are going to learn about how to install Yarn on Debian 10 Buster. <a rel=\"noreferrer noopener\" aria-label=\"Yarn (opens in a new tab)\" href=\"https:\/\/yarnpkg.com\/en\/docs\/getting-started\" target=\"_blank\">Yarn<\/a> is a java script package manager that enables you to use and share your code with other developers quickly, securely, and reliably through a package which contains all the code being shared as well as a\u00a0<code>package.json<\/code>\u00a0file which describes the package.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Yarn on Debian 10 Buster<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Create Yarn Repository<\/h3>\n\n\n\n<p>Yarn is not available on default Debian 10 Buster repos. Thus, you need to create its repo for easy installation.<\/p>\n\n\n\n<p>Before you can create the Yarn repo, you need install the Yarn repo GPG signing key.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><code>curl -sS https:\/\/dl.yarnpkg.com\/debian\/pubkey.gpg | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p>Once the key is in place, run the command below to create the Yarn repo.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><code>echo \"deb https:\/\/dl.yarnpkg.com\/debian\/ stable main\" | sudo tee \/etc\/apt\/sources.list.d\/yarn.list<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Run System Update<\/h3>\n\n\n\n<p>Now that the repos is installed, resynchronize your system packages to their latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Yarn<\/h3>\n\n\n\n<p>Now that you have Yarn repos in place, run the command below to install it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install yarn<\/code><\/pre>\n\n\n\n<p>Once the installation is done, you can run the command below to test Yarn installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>yarn --version<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>1.17.3<\/code><\/pre>\n\n\n\n<p>That is it on installation Yarn on Debian 10 Buster.<\/p>\n\n\n\n<p>Read more about Yarn and how to use on it documentation page.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\"Yarn Documentation (opens in a new tab)\" href=\"https:\/\/yarnpkg.com\/en\/docs\" target=\"_blank\">Yarn Documentation<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials;<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-gradle-on-debian-10-9\/\" target=\"_blank\">Install Gradle on Debian 10\/9<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-oracle-java-12-on-debian-10\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Oracle Java 12 on Debian 10<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn about how to install Yarn on Debian 10 Buster. Yarn is a java script package manager that<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,1005],"tags":[1039,1046],"class_list":["post-3720","post","type-post","status-publish","format-standard","hentry","category-howtos","category-package-installation","tag-debian-10-buster","tag-yarn","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3720"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=3720"}],"version-history":[{"count":2,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3720\/revisions"}],"predecessor-version":[{"id":3734,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3720\/revisions\/3734"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}