半只蚂蚁 发表于 2017-2-21 09:07:00

Mac下安装nodejs

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

h-3.2$ python
Python 2.6.1 (r261:67515, Aug2 2010, 20:10:18)
on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
sh-3.2$

从 http://nodejs.org/ 下载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)
页: [1]
查看完整版本: Mac下安装nodejs