Created
March 28, 2017 08:04
-
-
Save craigvantonder/3e64b2f9bed8c4b38ba80f54b794f353 to your computer and use it in GitHub Desktop.
Install Node.js v7.x on Ubuntu 16.04
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 | |
# Switch to root | |
sudo su | |
# Update the server | |
apt-get -y update | |
# Install Node.js v7.x: | |
# https://github.com/nodesource/distributions#installation-instructions | |
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - | |
apt-get install -y nodejs | |
# Check which version of Node is installed: | |
node -v | |
# Check which version of NPM is installed: | |
npm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment