nodejs 安装 及模块库

1.安装python
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -zxvf Python-2.7.2.tgz
cd  Python-2.7.2
./configure --prefix=/usr/local/python27
make
make install

mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python27/bin/python /usr/bin/

2.下载 source code http://nodejs.org/download/
tar -zxvf node-v0.10.26.tar.gz
./configure
make
make install

3.安装npm包
  npm install 包名,将包安装到当前目录下
 

你可能感兴趣的:(nodejs)