Centos7に node.js をインストールする

● ndenvのインストール

git clone https://github.com/riywo/ndenv ~/.ndenv
echo 'export PATH="$HOME/.ndenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(ndenv init -)"' >> ~/.bash_profile
exec $SHELL -l
git clone https://github.com/riywo/node-build.git ~/.ndenv/plugins/node-build
ndenv -h
ndenv install -l

● node.js のインストール(10.15.1 をインストール)

ndenv install v10.15.1
ndenv rehash
ndenv global v10.15.1
node -v
No.1446
02/18 18:27

edit