kenichi-shibata
6/9/2016 - 1:03 AM

install node 5.10-git.sh

#!/bin/bash

#http://nodejs.org/dist

yum install -y git
yum install -y gcc-c++
yum install -y openssl-devel
wget http://nodejs.org/dist/v5.10.1/node-v5.10.1-linux-x64.tar.gz
tar -xf node-v5.10.1-linux-x64.tar.gz
mv node-v5.10.1-linux-x64 node
rm -f node-v5.10.1-linux-x64.tar.gz
mv node /opt/node
echo export PATH=/opt/node/bin:$PATH >> /etc/bashrc
bash