Sunday, May 3, 2020

How To Install Yarn on Ubuntu 20.04 / Linux Mint 19.3 Tricia

Video Tutorial -  https://youtu.be/XO80AfXtLIg

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Yarn is the fast, reliable, and secure package management system for Nodejs application.
Offcial website :https://classic.yarnpkg.com/en/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os : Ubuntu 20.04 LTS (focal fossa) 64Bit ||         Linux Mint 19.3 Tricia
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt install -y build-essential net-tools curl git software-properties-common curl

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install nodejs -y
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
source ~/.profile  
nvm install v12.16.2
nvm use v12.16.2

curl -sL 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
apt update && sudo apt install yarn -y
yarn --version
npm install -g yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
source ~/.bashrc

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment