Created
March 28, 2014 03:15
-
-
Save ilovejs/9824547 to your computer and use it in GitHub Desktop.
install node.js on ubuntu
This file contains 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
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