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.
To install Yarn, follow these steps:
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.
For more information about Yarn, please visit https://yarnpkg.com.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.