86565656 发表于 2017-2-21 09:46:06

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
页: [1]
查看完整版本: mac下安装git和nodejs