LoginSignup
6
5

More than 3 years have passed since last update.

Node.jsをAmazonLinuxにインストール

Last updated at Posted at 2019-10-14

8系のNodeJsのインストール

$ curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
$ sudo yum -y install nodejs

# インストールバージョンの確認
$ node --version
v8.9.4
$ npm --version
5.6.0

10系のNodeJsのインストール

$ curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
$ sudo yum -y install nodejs

# インストールバージョンの確認
$ node --version
v10.16.0
$ npm --version
6.9.0

yarnのインストール

$ sudo curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
$ sudo yum install yarn
6
5
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
6
5