How to Install Yarn npm in Ubuntu?

By Hardik Savani May 1, 2024 Category : Node JS

Hello,

Here, i will show you how to works how to install yarn in ubuntu. i would like to show you how to install yarn npm ubuntu. This tutorial will give you simple example of how to install yarn in ubuntu 20.04. In this article, we will implement a install npm yarn ubuntu example. you will do the following things for how to install npm yarn in ubuntu.

i will give you simple command to how to install yarn through npm in ubuntu 20 server. let's run bellow command to install yarn command:

Install Yarn

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 -y

now you can check bellow command:

yarn -v

it will works.

i hope it can help you...

Tags :
Shares