LoginSignup
72
65

More than 5 years have passed since last update.

node.js 8.x をyumでインストールする(centos7.x)

Last updated at Posted at 2016-01-24

node.jsをyumでインストールする(centos7.x)

はじめに

nodejsをyumからインストールするのにnodesourceというサードパーティリポジトリからのインストールを紹介します
この方法でamazon linuxにもインストールできます。
プロダクション環境ではnvmを使うよりyumで管理したほうがセキュリティアップデートを扱いやすいです

リポジトリ追加

curl -sL https://rpm.nodesource.com/setup_8.x | bash -

リポジトリ単位でインストールするバージョンをコントロールします
8.xを6.xに変更すると6.xもインストール可能
(4.xを使いたい場合は4.xと指定すればインストール可能)

インストール

yum install -y nodejs gcc-c++ make

そのた

72
65
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
72
65