-
-
Save haroldsphinx/12aaa7571cd03c31faf95e189b6b6d92 to your computer and use it in GitHub Desktop.
Install nodejs in any version on an any Linux from Source
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
#!/bin/sh | |
nodeversion=6.9.4 | |
echo "Downloading Node from NodeJS website" | |
wget https://nodejs.org/download/release/v${nodeversion}/node-v${nodeversion}.tar.gz | |
tar -xvf node-v${nodeversion}.tar.gz | |
yum groupinstall 'Development Tools' -y | |
cd node-v${nodeversion} | |
./configure | |
make && make install | |
echo "Giving Root Access" | |
export PATH=$PATH:/usr/local/bin/ | |
cp node /usr/local/sbin | |
cp npm /usr/local/sbin | |
echo "Node Installed Successfully" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment