34
31

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2017-07-07

環境

インストール直後の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
34
31
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
34
31

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?