Yarn install in lunux
https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
Installing Yarn on Ubuntu
Follow the steps below to install Yarn on your Ubuntu 18.04 system:
- The first step is to enable the Yarn repository. Start by importing the repository’s GPG key using the following curl command:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
Add the Yarn APT repository to your system’s software repository list by typing:echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- Once the repository is added to the system, update the package list and install Yarn, with:
sudo apt updatesudo apt install yarn
If you already don’t have Node.js installed on your system, the command above will install it. Those who are using nvm can skip the Node.js installation with:sudo apt install --no-install-recommends yarn
- To verify that Yarn installed successfully, run the following commands which will print the Yarn version number:
yarn --version
At the time of writing this article, the latest version of Yarn is version1.10.1
.1.10.1
Comments
Post a Comment