Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install Yarn Package Manager

The following method has been tested on Ubuntu 18.04 and 16.04.

NodeJS Dependency

Yarn requires NodeJS. If you haven't already installed it, go here.

Steps

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
  && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
  && sudo apt update \
  && sudo apt install yarn -y

Prog Exec

The prog-exec command to run the above script is:.

prog-exec "34/1" "c6a9ccef59c818e546fda89456bfe73f3a363f2ee17798411b067b0306f3ad75"

References

Last updated: 3rd March 2021
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch