以Ubuntu为例

1.apt-get update

2.apt-get install python gcc make g++

3.wget https://nodejs.org/dist/v4.3.1/node-v4.3.1.tar.gz

4.tar zxvf node-v4.3.1.tar.gz

5. cd node-v4.3.1

6.  ./configure

7.make install

8.此时已经安装成功,查看node版本 命令:node --version

posted on 2016-03-02 18:58  ddai  阅读(154)  评论(0编辑  收藏  举报