Skip to content

Instantly share code, notes, and snippets.

@bonndan
Last active December 28, 2015 17:59
Show Gist options
  • Save bonndan/7539479 to your computer and use it in GitHub Desktop.
Save bonndan/7539479 to your computer and use it in GitHub Desktop.
install nodejs Ubuntu 12.04
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install nodejs
#
# npm can install npm
#
sudo npm install -g npm
#
# libs are installed elsewhere because of sudo
#
ln -s /usr/lib/node_modules/ /home/daniel/.node_libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment