> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing and configuring Yarn on managed hosting accounts

> Learn how to install the Yarn package manager on managed hosting. Yarn is a popular alternative to the npm package manager used for Node.js applications.

This article describes how to install the Yarn package manager on managed hosting accounts. The Yarn package manager is an alternative to the *npm* package manager used for Node.js applications.

## Installing Yarn

<Warning>
  **Important**

  Before you install Yarn, you must install Node.js on your account. For information about how to do this, please see [this article](/docs/installing-and-configuring-nodejs-on-managed-hosting). After Node.js is installed on your account, you are ready to install Yarn.
</Warning>

To install Yarn, follow these steps:

1. Log in to your account [using SSH](/docs/using-ssh-secure-shell).

2. At the command prompt, type the following commands:

   ```bash theme={null}
   cd ~
   curl -o- -L https://yarnpkg.com/install.sh | bash
   ```

   The installation script downloads and installs Yarn.

3. To activate the new Yarn environment immediately, type the following command:

   ```bash theme={null}
   source ~/.bashrc
   ```

4. To verify the installation is working correctly, type the following commands:

   ```bash theme={null}
   yarn
   yarnpkg
   ```

   You should receive the following output for each command:

   ```
   yarn install v1.19.1
   [1/4] Resolving packages...
   success Already up-to-date.
   Done in 0.05s.
   ```

   > 📘 Note
   >
   > The version number and completion time may differ for your own installation.

## More information

For more information about Yarn, please visit [https://yarnpkg.com](https://yarnpkg.com).

## Related articles

* [Installing and configure Node.js on managed hosting](/docs/installing-and-configuring-nodejs-on-managed-hosting)
