mac下安装git和nodejs

来源:互联网 发布:游戏优化软件 编辑:程序博客网 时间:2024/06/10 00:32
第一种方法:
1、执行以下命令安装homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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

原创粉丝点击