Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

環境

インストール直後の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
daikiojm
Blog: http://daikiojm.hatenablog.com Scrapbox: https://scrapbox.io/daikiojm
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした