Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»Nodejs»How to Install Yarn on CentOS & Fedora

    How to Install Yarn on CentOS & Fedora

    RahulBy RahulApril 16, 20181 Min ReadUpdated:March 18, 2020

    The yarn is an advanced package management software for Node.js applications. It is a fast, secure, and reliable alternative that any other Nodejs package manager.

    This tutorial contains three ways to install Yarn on CentOS, Redhat, & Fedora system. Use one of the following ways:

    1. Install Yarn using NPM

    Yarn package is available to install with NPM. You can simply run the following command to install Yarn globally. Also, remove -g option to install for the current project only.

    sudo npm install yarn -g
    

    Check installed version:

    yarn -v
    
    1.22.4
    

    2. Install Yarn using Script

    This is the most recommended way for the yarn installation. This downloads the yarn archive and extracts under the .yarn directory at home. The script also set the PATH environment variable.

    curl -o- -L https://yarnpkg.com/install.sh | bash
    

    Using this installation yarn is available for the current user only.

    3. Install Yarn using Yum

    Yarn packages are also available with yum package manager. You can configure yarn official yum repository using the below command:

    curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
    

    Now run the below command to install it.

    sudo yum install yarn    ## CentOS and Redhat systems 
    sudo dnf install yarn    ## Fedora systems 
    
    NodeJs yarn
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Dropbox on Ubuntu 18.04 & 16.04
    Next Article How to Install Yarn on Ubuntu, Debian & LinuxMint

    Related Posts

    How To Install NVM on Ubuntu 22.04

    Updated:April 16, 20223 Mins Read

    How To Install NVM on Windows

    Updated:April 16, 20223 Mins Read

    How To Install Node.Js on Debian 11

    Updated:February 11, 20226 Mins Read

    How To Install NVM on Debian 11

    Updated:August 31, 20213 Mins Read

    How To Use Environment Variables in Node.js

    6 Mins Read

    How to Parse Command Line Arguments in Node.js

    5 Mins Read

    4 Comments

    1. tunnel on May 31, 2020 9:57 am

      thanks

      Reply
    2. Matt on September 17, 2019 4:48 am

      Thanks very much for the writeup, it was very helpful!

      Reply
    3. t0dd on March 15, 2019 5:14 pm

      And… if installing by RPM, the executable is /usr/bin/yarnpkg
      FYI

      Thanks for the writeup.

      Reply
    4. Hotmail Support on July 23, 2018 9:43 pm

      YARN is nothing but a package manager for the code that we want to run on our system and it allows us to use and share the code with the other. To use it on your system, first, you need to install it. The installation process is quite simple for you, You just follow the steps given here.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.