Last active
December 20, 2015 03:39
-
-
Save alexandrerocco/6065356 to your computer and use it in GitHub Desktop.
Install nodejs from source on Centos
This file contains 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 -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