32
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

AmazonLinuxにyarnをインストールする

環境

インストール直後のAmazonLinuxを想定しています。

$ cat /etc/system-release
Amazon Linux AMI release 2017.03

インストール

レポジトリを取得する必要があるのでwgetをインストール

$ yum -y install wget

yumのyarnレポジトリ追加

$ wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo

rpmのnodeのレポジトリ追加

$ curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

インストール

$ yum install yarn

確認

$ yarn --version
0.27.5
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
32
Help us understand the problem. What are the problem?