linux下Node.js安装

首先安装python2.7

wget -c https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -xzvf Python-2.7.9.tgz 
./configure  
make
make install

查看python 版本 python安装地点

python --version
which python

其实ubuntu自己集成了python2.7.12

node.js安装

sudo apt-get install nodejs
sudo apt-get install npm

node版本查看

node --version
原文地址:https://www.cnblogs.com/yankang/p/6429011.html