Skip to content

Instantly share code, notes, and snippets.

@matthewhartman
Created August 5, 2020 23:25
Show Gist options
  • Select an option

  • Save matthewhartman/dfc60bf4cd5bb0d103a3ad3c5475ba5f to your computer and use it in GitHub Desktop.

Select an option

Save matthewhartman/dfc60bf4cd5bb0d103a3ad3c5475ba5f to your computer and use it in GitHub Desktop.

Revisions

  1. matthewhartman created this gist Aug 5, 2020.
    27 changes: 27 additions & 0 deletions install-yarn-linux-debian.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # Installing Yarn on Debian

    Import the repository's GPG key

    ```bash
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    ```

    Enable the Yarn APT repository

    ```bash
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    ```

    If you have Node already installed using NVM, simply update the package index and install Yarn without Node

    ```bash
    sudo apt update && sudo apt install --no-install-recommends yarn
    ```

    Verify Yarn is installed

    ```bash
    yarn --version
    ```

    Source: https://linuxize.com/post/how-to-install-yarn-on-debian-9/