As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.
Prerequisites
- Amazon Linux 2
- sudo privileges
Install Yarn on Amazon Linux 2
Step 1. Add the yarn package to the yum package manager.
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
Step 2. Install Yarn.
sudo yum install yarn
Step 3. Verify the installation.
yarn version
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.