Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
Last active December 3, 2017 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stephanetimmermans/3542fa2daf2e38ae5ec1 to your computer and use it in GitHub Desktop.
Save stephanetimmermans/3542fa2daf2e38ae5ec1 to your computer and use it in GitHub Desktop.
Install Node.js on Ubuntu 14.10
#https://www.digitalocean.com/community/articles/how-to-install-node-js-on-an-ubuntu-14-04-server
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
npm config set prefix ~/npm
#append to .bashrc
export PATH="$PATH:$HOME/npm/bin"
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/lib/node_modules
sudo chown -R `whoami` /usr/local
#https://www.digitalocean.com/community/articles/how-to-use-npm-to-manage-node-js-packages-on-a-linux-server
npm completion >> ~/.bashrc
source ~/.bashrc
#Uninstall
#sudo apt-get remove nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment