Created
November 21, 2017 04:54
-
-
Save mattjcowan/bcbc3a6618e3c6f52619f86f11460e31 to your computer and use it in GitHub Desktop.
ubuntu1604-install-node-v8
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 | |
# 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