当前位置: 代码迷 >> JavaScript >> Mac停安装nodejs
  详细解决方案

Mac停安装nodejs

热度:232   发布时间:2012-06-26 10:04:13.0
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)