Skip to content

Instantly share code, notes, and snippets.

@lukeaus
Last active June 15, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeaus/bea183f8e3ea39993eed7911911ab1f1 to your computer and use it in GitHub Desktop.
Save lukeaus/bea183f8e3ea39993eed7911911ab1f1 to your computer and use it in GitHub Desktop.
Install nodejs and npm on Ubuntu 14.04
# Install packages to allow Node to be installed
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-get install apt-transport-https
# Install Node
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 68576280
# change /node_6.x to whatever release version of node you would like (e.g. node_5.x)
sudo apt-add-repository "deb https://deb.nodesource.com/node_6.x $(lsb_release -sc) main"
# Update again for the latest packages
sudo apt-get update
# Install Node
sudo apt-get install nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment