赞
踩
很久没装过Homebrew
,今天刚好换了新电脑,通过Homebrew
官网(https://brew.sh/)的指令进行安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
出现如下异常:
curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 19 ms: Couldn't connect to server
看到状态码443,想起国外网站应该是被墙了导致,所以切换了国内的镜像,我选用了阿里的镜像
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
下载一切正常
最后根据上面提示,需要执行如下指令,刷新配置,就可以正常使用brew
指令
source /Users/evan/.zprofile
安装完需要重启或者根据提示执行source /Users/xxx/.zprofile
刷新配置,否则会出现如下异常:
-bash: brew: command not found
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。