![]() ![]() ![]() The Yarn team also provides us with a shell script to do the installation without having to go through the hassle of adding a repository just for one package. ![]() Method 2: Install Yarn Using the Official Installation Script Now you have Yarn installed on your server using the APT package manager. Now, you can run the command to check the Yarn version again: yarn -v ![]() To install Node.js, you can run the following command: apt install nodejs Yarn requires Node.js 4.0 or higher to be installed. If you see the following message when checking yarn version, it means you don’t have Node.js installed on your system. Now, let’s check the Yarn version that we just installed: yarn -v Once added, we can update the package list and install Yarn. echo "deb stable main" | tee /etc/apt//yarn.list Use the following command to add the Yarn repository and import the repository’s GPG key. First, we need to add the Yarn repository. Method 1: Install Yarn Using the APT Package Manager There are several ways to install Yarn – each of which we’ll be going through in this tutorial. Once you are logged in, run the following command to and make sure all installed packages are updated to the latest available version apt-get update & apt-get upgrade Step 2. Make sure to replace “ server_ip” and “ port_number” with their respective values. Log in to your Server via SSH and Update the System: ssh _ip -p port_number
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |