Yarn install in lunux

https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/


Follow the steps below to install Yarn on your Ubuntu 18.04 system:
  1. The first step is to enable the Yarn repository. Start by importing the repository’s GPG key using the following curl command:
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    Copy
    Add the Yarn APT repository to your system’s software repository list by typing:
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    Copy
  2. Once the repository is added to the system, update the package list and install Yarn, with:
    sudo apt updatesudo apt install yarn
    Copy
    If you already don’t have Node.js installed on your system, the command above will install it. Those who are using nvm can skip the Node.js installation with:
    sudo apt install --no-install-recommends yarn
    Copy
  3. To verify that Yarn installed successfully, run the following commands which will print the Yarn version number:
    yarn --version
    Copy
    At the time of writing this article, the latest version of Yarn is version 1.10.1.
    1.10.1

Comments

Popular Posts