Skip to content

Instantly share code, notes, and snippets.

@ilovejs
Created March 28, 2014 03:15
Show Gist options
  • Save ilovejs/9824547 to your computer and use it in GitHub Desktop.
Save ilovejs/9824547 to your computer and use it in GitHub Desktop.
install node.js on ubuntu
Method 1:
download node-xxx.gz on http://nodejs.org/
//extract file
tar -xf node-xxx.gz
(ps: compression can be done):
tar -cf node.gz folder1 folder2
//README.md tells me:
./configure
make
make install
-------------------------------
Method 2: Official way
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
--------------- test --------------
sudo npm install -g component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment