安装git
brew install git
生成本地ssh key
ssh-keygen -t rsa
添加公钥到gitlab
git clone --recursive git@gitlab.******.git(to you project)
npm 切换成淘宝源:
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm install
done
原文:http://www.cnblogs.com/wjiangbj/p/5120469.html