Skip to content

Instantly share code, notes, and snippets.

@noboo
Created July 27, 2019 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noboo/a2c5de857ead608562d89b945746e19d to your computer and use it in GitHub Desktop.
Save noboo/a2c5de857ead608562d89b945746e19d to your computer and use it in GitHub Desktop.
CentOS 6.xにnode.js(v8系)をインストールする

CentOS 6.xにnode.js(v8系)をインストールする

今入っているやつがあれば削除する sudo yum remove nodejs

事前にいれておくべきパッケージをインストール sudo yum install -y gcc-c++ make

リポジトリのインストールをインストールする

sudo rpm -Uvh https://rpm.nodesource.com//pub_8.x/el/6/x86_64/nodejs-8.9.4-1nodesource.x86_64.rpm

バージョンアップする可能性があるので下記のページで確認してからインストール https://rpm.nodesource.com//pub_8.x/el/6/x86_64/ もし9系をいれたい場合は下記を確認してインストール https://rpm.nodesource.com//pub_9.x/el/6/x86_64/

sudo rpm -Uvh https://rpm.nodesource.com//pub_9.x/el/6/x86_64/nodejs-9.5.0-1nodesource.x86_64.rpm

参考 https://masalib.hatenablog.com/entry/2018/02/14/194846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment