Skip to content

Instantly share code, notes, and snippets.

@samuraitruong
Created October 26, 2017 00:07
Show Gist options
  • Save samuraitruong/39e511a705ad91712b688b92cb77e773 to your computer and use it in GitHub Desktop.
Save samuraitruong/39e511a705ad91712b688b92cb77e773 to your computer and use it in GitHub Desktop.
#!/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