日期:2014-05-16 浏览次数:20380 次
下面分别介绍在Mac, Ubuntu,Centos以及Windows下安装Node.js.
在Mac下,如果你喜欢用homebrew,那么只用一行就可以装好:
brew install node
否则,只能考虑手工安装了,步骤如下:
git clone git://github.com/joyent/node.git
cd node
./configure
make
sudo make install
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
git clone git://github.com/joyent/node.git
cd node
./configure
make
sudo make install
用cygwin来安装node,步骤如下:
git clone git://github.com/joyent/node.git
cd node
./configure
make
sudo make install
yum install gcc-c++ openssl-devel
wget --no-check-certificate https://github.com/joyent/node/tarball/v0.3.3
tar -xzvf ry-node-v0.3.3