![]() |
|
How to Install Yarn on Linux, macOS, and Windows - Printable Version +- My Board (https://ellohost.com/forum) +-- Forum: Tutoriel EN (https://ellohost.com/forum/forumdisplay.php?fid=8) +--- Forum: Others (https://ellohost.com/forum/forumdisplay.php?fid=20) +--- Thread: How to Install Yarn on Linux, macOS, and Windows (/showthread.php?tid=152) |
How to Install Yarn on Linux, macOS, and Windows - aaron - 08-13-2023 How to Install Yarn on Linux, macOS, and WindowsIn this section, we will explain the steps to set up the Yarn package manager on different operating systems. Installing Yarn on Linux and macOSYou have two options to install Yarn on Linux and macOS: using npm or cURL. Before proceeding with the installation, ensure that Node.js and npm are available on your system. Using npmTo install Yarn using npm, follow these steps:
After the installation is complete, reopen the Terminal and log in again via SSH to enable Yarn commands. To verify if Yarn has been successfully installed, type the following command:
Using cURLTo install Yarn using cURL on most Linux distributions and macOS, follow these steps:
Once the installation is finished, reopen the Terminal and connect via SSH to ensure Yarn is accessible. Confirm the installation by checking the Yarn version:
Using cURL on DebianIf you're using Debian, use the following steps to install Yarn using cURL:
Add the Yarn APT repository to the Debian package repository:
Update the package list and install Yarn:
Verify the installation:
Using cURL on CentOSTo install Yarn using cURL on CentOS, follow these steps:
Import the repository's GPG key:
Install Yarn using the following command:
Confirm the installation:
Installing Yarn on WindowsTo install the Yarn package manager on Windows, follow these steps:
|