Skip to content

Instantly share code, notes, and snippets.

@renatoargh
Last active December 18, 2015 03:38
Show Gist options
  • Save renatoargh/5719218 to your computer and use it in GitHub Desktop.
Save renatoargh/5719218 to your computer and use it in GitHub Desktop.
My custom Node.js installation scriptcurl https://gist.github.com/renatoargh/5719218/raw | sh
sudo yum upgrade -y
sudo yum install -y gcc-c++
sudo yum install -y openssl-devel
sudo yum install -y make
sudo yum install -y git
wget http://nodejs.org/dist/node-latest.tar.gz
tar -zxvf node-latest.tar.gz
cd node-v*
./configure –prefix=/usr
make
sudo make install
cd
rm -rf node-latest.tar.gz
rm -r node-v*
sudo ln -s /usr/local/bin/node /usr/bin/node
sudo ln -s /usr/local/lib/node /usr/lib/node
sudo ln -s /usr/local/bin/npm /usr/bin/npm
sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf
echo "Defaults exempt_group=wheel" | sudo tee -a /etc/sudoers
sudo yum install libxml2 -y
sudo yum install rpmdevtools -y
sudo yum groupinstall "Development Tools" -y
sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
sudo npm install -g forever
sudo npm install -g grunt-cli
sudo npm install -g bower
sudo npm install -g node-inspector
sudo cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment