首先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的版本
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)
本文介绍如何在MacOS环境下安装Node.js,并配置相应的开发环境。首先确保已安装Python 2.3及以上版本,然后从官方网站下载Node.js源码包并进行解压。之后通过命令行进入解压后的目录并运行配置及安装命令。
1602

被折叠的 条评论
为什么被折叠?



