Created
October 26, 2017 00:07
-
-
Save samuraitruong/39e511a705ad91712b688b92cb77e773 to your computer and use it in GitHub Desktop.
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/bash | |
yum update -y | |
mkdir /var/www | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash | |
. ~/.nvm/nvm.sh | |
nvm install 8.6.0 | |
node -e "console.log('Running Node.js ' + process.version)" | |
n=$(which which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment