下载连接:https://github.com/allure-framework/allure2/releases
选择任意压缩包进行下载
解压后是一个文件夹
# bash终端
vim ~/.bash_profile
# zsh终端
vim ~/.zshrc
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# 将${PATH}:后面的路径改为自己allure的路径
export PATH=${PATH}:/Users/zhangmeng/Documents/WORK/testtools/allure-2.29.0/bin
# bash终端
source ~/.bash_profile
# zsh终端
source ~/.zshrc
allure --version
重启电脑