Last active
December 3, 2017 15:31
-
-
Save stephanetimmermans/3542fa2daf2e38ae5ec1 to your computer and use it in GitHub Desktop.
Install Node.js on Ubuntu 14.10
This file contains hidden or 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
#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