node.js安装

一、安装依赖:node

centos:c++

 yum install libtool automake autoconf gcc-c++ openssl-devel

ubuntu:git

sudo apt- install g++ curl libssl-dev apache2-utils 
sudo apt- install git-core

二、安装node (centos和ubuntu同样)github

git clone git://github.com/joyent/node.git   
  cd node
  ./configure
  make   
  sudo make install

 三、测试完后测试是否安装正确web

node -v
相关文章
相关标签/搜索