首页 > 系统服务 > 详细

MAC OS系统替换homebrew使用阿里云的镜像源

时间:2019-06-07 13:47:08      阅读:589      评论:0      收藏:0      [点我收藏+]

替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
# 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
# 应用生效
brew update
# 替换homebrew-bottles:
echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles‘ >> ~/.bash_profile
source ~/.bash_profile

npm 改淘宝源,//将registry设置为淘宝镜像

npm config set registry http://registry.npm.taobao.org          

查看registry

npm config get registry

MAC OS系统替换homebrew使用阿里云的镜像源

原文:https://www.cnblogs.com/brianlai/p/10987986.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!