Created
August 8, 2013 14:39
-
-
Save reklis/6185165 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - | |
# install node | |
yum -y install git-all | |
# latest | |
cd /opt | |
node_latest=`curl nodejs.org/dist/latest/ | grep linux | sed -e 's/.*href=\"//' -e 's/\".*//' | grep x64` | |
wget http://nodejs.org/dist/latest/$node_latest | |
tar xfvz $node_latest | |
rm -rf node | |
ln -s `echo $node_latest | sed -e 's/.tar.gz//'` node | |
# version .8 | |
# cd /opt | |
# wget http://nodejs.org/dist/v0.8.22/node-v0.8.22-linux-x64.tar.gz | |
# tar xfvz node-v0.8.22-linux-x64.tar.gz | |
# ln -s node-v0.8.22-linux-x64 node | |
cd /usr/local/share/man/man1 | |
ln -sf /opt/node/share/man/man1/node.1 | |
cd /usr/bin | |
ln -sf /opt/node/bin/node | |
#ln -sf /opt/node/bin/node-waf | |
ln -sf /opt/node/bin/npm | |
node --version && npm --version | |
## OK! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment