How to Install Yarn On Ubuntu

Comparing to NPM, Yarn is a great way to manage your nodeJS packages, here is how to install it on Ubuntu 20.04.


sudo apt-get install gpg-agent

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-get update && sudo apt-get install yarn

To install NodeJS, please refer to this post

How to Install NodeJS

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
*