Skip to content

Instantly share code, notes, and snippets.

@alexandrerocco
Last active December 20, 2015 03:39
Show Gist options
  • Save alexandrerocco/6065356 to your computer and use it in GitHub Desktop.
Save alexandrerocco/6065356 to your computer and use it in GitHub Desktop.
Install nodejs from source on Centos
sudo -s
## dependencies to build
yum -y groupinstall "Development Tools"
## download and build
cd /opt
wget http://nodejs.org/dist/node-latest.tar.gz
tar zxf node-latest.tar.gz
cd node-latest
./configure
make
make install
## if /usr/local/bin is not on path, add it:
vim ~/.bashrc
export PATH=/usr/local/bin:$PATH
source ~/.bashrc
## to check it out (should print version)
node -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment