Ubuntu安装node.js

通过PPA安装Node.js

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

目前只能通过PPA安装稳定版本的Node.js

查看是否安装成功及版本号:

~$ node --version
v0.6.12

curl安装:

sudo apt-get install curl

npm安装:

curl -k https://npmjs.org/install.sh | sudo sh

Note: npm included in new versions of node.js. No need to install it separately now.

 

 

posted @ 2013-08-29 17:16  Zhaoyier  阅读(214)  评论(0编辑  收藏  举报