io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameters: [serve, reports]

问题:终端执行 allure serve reports    

报错:

 

一、解决方法:将jdk版本切换至jdk1.8,下载链接:https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html,报错的版本是Java14

二、百度网友说Java8或者Java8以上版本支持。如果更改了java的默认运行版本,还是报这个错。

brew uninstall allure
Uninstalling /usr/local/Cellar/allure/2.13.5... (95 files, 17.9MB)
#重新安装allure,报错如下:
brew install allure Updating Homebrew... ==> Downloading https://dl.bintray.com/qameta/maven/io/qameta/allure/allure-comm Already downloaded: /Users/lujiahuan/Library/Caches/Homebrew/downloads/a6009dd9e643d26aed971744c2257b756de9f8e990a00735cf49121dfae94160--allure-commandline-2.13.5.zip Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/allure Target /usr/local/bin/allure is a symlink belonging to allure-commandline. You can unlink it: brew unlink allure-commandline To force the link and overwrite all conflicting files: brew link --overwrite allure To list all files that would be deleted: brew link --overwrite --dry-run allure Possible conflicting files are: /usr/local/bin/allure -> /usr/local/Cellar/allure-commandline/1.4.23/bin/allure ==> Summary 🍺 /usr/local/Cellar/allure/2.13.5: 95 files, 17.9MB, built in 3 seconds

 哈哈哈,终于找到问题的原因了,一口老血。。。。。。,误装了allure-commandline

执行下面指令:

brew unlink allure-commandline
brew link allure

 查看一下:

➜  ~ allure --version

2.13.5

 

posted @ 2020-08-13 16:12  拂晓lu  阅读(484)  评论(0编辑  收藏  举报