LoginSignup
0
0

More than 5 years have passed since last update.

centos7 nodejs インストール

Last updated at Posted at 2018-09-18

nodeパージョン管理ツールからインストール

ツールはいろいろあるが今回はnodenvにする
nodenvにするにはnode-buildも必要なので合わせてインストール

対象物ダウンロード
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build

パスを通す
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(nodenv init -)"' >> ~/.bash_profile
source ~/.bash_profile

この時点完了、インストールされているか確認
nodenv -v

この記事を書いた時点V10が最新、v10にする
nodenv install 10.10.0
nodenv global 10.10.0

インストールされているか確認
node -v

0
0
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
0
0