Skip to content

Instantly share code, notes, and snippets.

@mattjcowan
Created November 21, 2017 04:54
Show Gist options
  • Save mattjcowan/bcbc3a6618e3c6f52619f86f11460e31 to your computer and use it in GitHub Desktop.
Save mattjcowan/bcbc3a6618e3c6f52619f86f11460e31 to your computer and use it in GitHub Desktop.
ubuntu1604-install-node-v8
#!/bin/sh
# SAMPLE USAGE(S)
# ------------------------------
# curl GIST_URL | bash
# OR
# curl -o /tmp/ubuntu1604-install-node-v8.sh GIST_URL
# chmod +x /tmp/ubuntu1604-install-node-v8.sh
# /tmp/ubuntu1604-install-node-v8.sh
# OR
# curl -o /tmp/ubuntu1604-install-node-v8.sh GIST_URL
# chmod +x /tmp/ubuntu1604-install-node-v8.sh
# echo /tmp/ubuntu1604-install-node-v8.sh | at now + 1 minute
# Install nvm
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
# Install node
nvm install v8.9.1
nvm alias default v8.9.1
nvm use default
npm i -g rimraf dotenv pm2 forever nodemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment