当前位置: 代码迷 >> JavaScript >> mac上安装git和nodejs
  详细解决方案

mac上安装git和nodejs

热度:892   发布时间:2013-03-06 16:20:31.0
mac下安装git和nodejs
第一种方法:
1、执行以下命令安装homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
2、执行以下命令安装git
brew install git
3、执行以下命令安装nodejs
brew install node

第二种方法:
1、先安装git
git安装包下载地址http://code.google.com/p/git-osx-installer/downloads/list
2、安装nodejs
依次执行以下命令:
git clone https://github.com/joyent/node.git nodejs
cd nodejs
./configure
make
sudo make install