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 Amazon Linux

    How to Install Yarn on Amazon Linux

    RahulBy RahulOctober 12, 20191 Min ReadUpdated:October 16, 2019

    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 methods of yarn installation on Amazon Linux systems.

    Choose Use one of the following methods to install Yarn on Amazon Linux machine:

    Method 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.19.1
    

    Method 2. Install Yarn using Script

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

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

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

    Method 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
    
    NodeJs yarn
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Install Latest Nodejs on Amazon Linux
    Next Article How to Convert String to Lowercase in Python

    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

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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