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
Important
Before you install Yarn, you must install Node.js on your account. For information about how to do this, please see this article. After Node.js is installed on your account, you are ready to install Yarn.
To install Yarn, follow these steps:
-
Log in to your account using SSH.
-
At the command prompt, type the following commands:
cd ~ curl -o- -L https://yarnpkg.com/install.sh | bash
The installation script downloads and installs Yarn.
-
To activate the new Yarn environment immediately, type the following command:
source ~/.bashrc
-
To verify the installation is working correctly, type the following commands:
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.
Related Articles
Updated 1 day ago