Skip to content

Instantly share code, notes, and snippets.

@matthewhartman
Created August 5, 2020 23:25
Show Gist options
  • Save matthewhartman/dfc60bf4cd5bb0d103a3ad3c5475ba5f to your computer and use it in GitHub Desktop.
Save matthewhartman/dfc60bf4cd5bb0d103a3ad3c5475ba5f to your computer and use it in GitHub Desktop.
Install Yarn on Linux (Debian)

Installing Yarn on Debian

Import the repository's GPG key

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

Enable the Yarn APT repository

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

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

Verify Yarn is installed

yarn --version

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment