Skip to content

Instantly share code, notes, and snippets.

@craigvantonder
Created March 28, 2017 08:04
Show Gist options
  • Save craigvantonder/3e64b2f9bed8c4b38ba80f54b794f353 to your computer and use it in GitHub Desktop.
Save craigvantonder/3e64b2f9bed8c4b38ba80f54b794f353 to your computer and use it in GitHub Desktop.
Install Node.js v7.x on Ubuntu 16.04
#!/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