Mac安裝Allure


  1. 安裝Homebrew

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

  2. Homebrew更換國內鏡像源

    # 替換 brew.git 倉庫地址
      cd "$(brew --repo)" 
      git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
      # 同下面一行命令
      git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git 
    
    # 替換 homebrew-core.git 倉庫地址
      cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 
      git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
      #
      git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
    
    # 替換 homebrew-cask.git 倉庫地址
      cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
      git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
      # 
      git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
    
    # 替換 homebrew-bottles 訪問地址
      vim ~/.zshrc
      export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
      # 保存后
      source ~/.zshrc
    
  3. 終端輸入命令進行安裝

    brew install allure

  4. 成功

    UR8PKA.png


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM