Mac安装brew及问题解决
1、打开终端、命令行执行:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
官方地址:https://brew.sh/index_zh-cn
2、顺利情况下
3 问题
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force
解决
依次执行
// 执行下面这句命令,更换为中科院的镜像:
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
// 把homebrew-core的镜像地址也设为中科院的国内镜像
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
// 更新
brew update
// 使用
brew install node
推荐阅读
-
2013款mac air及一体机安装win7 键盘鼠标失灵的解决方法
-
MySQL5.7.03 更换高版本到MySQL 5.7.17安装过程及发现问题解决方案
-
Linux系统安装NoSQL(MongoDB和Redis)步骤及问题解决办法(总结篇)
-
mac环境中使用brew安装php5.5.15
-
Mac下通过brew安装指定版本的nodejs教程
-
Mac brew安装的php修改了php.ini之后如何重启php?
-
Linux安装Jenkins步骤及各种问题解决(页面访问初始化密码)
-
Centos7.4服务器安装apache及安装过程出现的问题解决方法
-
mac编译安装nginx及nginx-echo-module
-
ubuntu 安装linux 下vmVMware tools 步骤及问题解决