How to Install and Configure Yarn on Managed Hosting Accounts

August 18, 2023 / How-to Guide

This guide explains how to install and configure Yarn on managed hosting accounts. Yarn is tool for handling JavaScript runtime environments. Yarn is a substitute to the npm package manager used for Node.js applications.

Important note- You should install Node.js on your account before installing Yarn.

Follow the steps-

  1. Log in to SSH.
  2. Execute the following command-
    cd ~
    curl -o- -L | bash
    Yarn will be downloaded and installed by the installation script.
  3. Enter the following command, to activate the new Yarn environment immediately.
    source ~/.bashrc
  4. To check the installation is working properly, execute the following command-
  5. You would receive the succeeding output for each command-
    yarn install v1.19.1
    [1/4] Resolving packages…
    success Already up-to-date.
    Done in 0.05s.
  6. The completion time and version number may differ for your own installation.

Hope you liked our article. For more such informative articles, do visit our KB section regularly.

Spread the love