首页 > 系统服务 > 详细

Mac安装Allure

时间:2020-07-19 14:24:27      阅读:576      评论:0      收藏:0      [点我收藏+]
  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. 成功

    技术分享图片

Mac安装Allure

原文:https://www.cnblogs.com/x1you/p/13339208.html

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