Mac下安装nodejs

首先nodejs需要python2.3以上版本的支持
查看python的版本

h-3.2$ python
Python 2.6.1 (r261:67515, Aug  2 2010, 20:10:18)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
sh-3.2$

从 [url]http://nodejs.org/ [/url]下载nodejs
tar xvzf node-v0.4.12.tar.gz
cd node-v0.4.12
./configure --prefix=/Developer/Library/node
make && make install
'install' finished successfully (0.166s)



你可能感兴趣的:(python,nodejs)