站長資訊網
        最全最豐富的資訊網站

        一招教你怎么使用mac 安裝配置 homebrew(代碼分享)

        之前的文章《淺析JS中base64和圖片互相轉換(附代碼)》中,給大家了解了JS中base64和圖片互相轉換。下面本篇文章給大家介紹怎么使用mac安裝配置homebrew,我們一起看看怎么做。

        一招教你怎么使用mac 安裝配置 homebrew(代碼分享)

        最近換電腦了,發現homebrew安裝不上了,我感覺是網絡問題,連了個vpn,發現還是不行,哈哈,是姿勢不對

        安裝

        運行下面自動腳本(已經全部替換為國內地址):

        (Mac)常規安裝腳本(推薦完全體幾分鐘安裝完成)

        /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

        (Mac)精簡版幾秒鐘安裝完成

        /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed

        (Mac)卸載腳本

        /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

        (Linux)安裝腳本:

        rm Homebrew.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh ; bash Homebrew.sh

        (Linux)卸載腳本:

        rm HomebrewUninstall.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh ; bash HomebrewUninstall.sh

        安裝問題

        如果發現有各種安裝不上的運行:

        sudo rm -rf /usr/local/Homebrew

        提示系統太舊的 (Failed to install Homebrew Portable Ruby (and your system version is too old)!) 運行:

        HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles-portable-ruby  rm -rf /Users/$(whoami)/Library/Caches/Homebrew/  brew update

        切換鏡像源

        阿里云homebrew

        配置方法:[https://developer.aliyun.com/mirror/homebrew]。

        # 替換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

        騰訊云homebrew

        配置方法:Homebrew鏡像使用幫助

        [https://mirrors.cloud.tencent.com/help/homebrew.html]。

        cd "$(brew --repo)" git remote set-url origin http://mirrors.cloud.tencent.com/git/homebrew/brew.git  cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin http://mirrors.cloud.tencent.com/git/homebrew/homebrew-core.git  brew update

        配置方法:Homebrew-bottles鏡像使用幫助

        [https://mirrors.cloud.tencent.com/help/homebrew-bottles.html]。

        echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile

        中科大homebrew

        配置方法:Homebrew源使用幫助[http://mirrors.ustc.edu.cn/help/brew.git.html]。

        cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

        配置方法:Homebrew Core源使用幫助[http://mirrors.ustc.edu.cn/help/homebrew-core.git.html]。

        cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

        配置方法:Homebrew Bottles源使用幫助[http://mirrors.ustc.edu.cn/help/homebrew-bottles.html]。

        echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile

        推薦學習:MacOS教程

        贊(0)
        分享到: 更多 (0)
        網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號
        主站蜘蛛池模板: 国内精品久久久久伊人av| 四虎国产精品永久地址99| 精品国产亚洲一区二区三区| 午夜精品一区二区三区在线视| 欧美精品国产精品| 国产精品国产三级国产av品爱网 | 亚洲国产精品自在线一区二区| 亚洲国产一成人久久精品| 国产三级精品三级在专区| 老司机91精品网站在线观看| 国产精品无码一区二区三级| 亚洲欧美精品AAAAAA片| 亚洲国产精品无码久久久久久曰| 国内精品久久久久影院网站| 国产成人精品大尺度在线观看| 精品视频第一页| 99久久99久久精品免费看蜜桃| 国产精品偷伦视频观看免费| 久久Av无码精品人妻系列| 亚洲精品乱码久久久久久中文字幕| 四虎国产精品免费久久| 欧美在线精品一区二区三区| 麻豆精品国产自产在线观看一区| 久99久无码精品视频免费播放| 国内精品久久久久国产盗摄| 久久99精品免费一区二区| 国产一区二区精品尤物| 国产午夜精品久久久久九九| 国产精品99久久久久久www| 97久久精品人人澡人人爽| 91国内揄拍国内精品情侣对白| 亚洲国产精品欧美日韩一区二区| 91大神精品全国在线观看| 国产精品亚洲产品一区二区三区 | 一本一本久久A久久综合精品| 色偷偷88欧美精品久久久| 无夜精品久久久久久| 在线精品亚洲| 日本VA欧美VA欧美VA精品 | 久99精品视频在线观看婷亚洲片国产一区一级在线| 日本精品久久久久影院日本|