英文:
(Install xk6) How to fix PATH issue when install xk6 use go
问题
当我按照k6文档安装xk6以启用Prometheus时,我遇到了以下错误。点击此处查看图片描述
我感觉我可能漏掉了一些非常基础的东西。
英文:
When I followed the k6 doc. and installed xk6 to enable Prometheus, I found the following error.enter image description here
I feel like I am missing something super basic.
答案1
得分: 1
这是由于过时的文档,很快就会修复。
您可以使用go install go.k6.io/xk6/cmd/xk6@latest
安装xk6。请参阅GitHub存储库中的安装说明。
对于造成的困惑,我们表示歉意。将来请使用社区论坛来提问这类问题,因为这不是Stack Overflow的主题。
英文:
This is due to outdated documentation, which will be fixed shortly.
You can install xk6 with go install go.k6.io/xk6/cmd/xk6@latest
. See the installation instructions in the GitHub repository.
Apologies for the confusion. In the future please use the community forum for these types of questions, since it's not on topic for Stack Overflow.
答案2
得分: 0
似乎指南已经过时:如果你在 GitHub 仓库上查看文档,命令应该是:
>go install go.k6.io/xk6/cmd/xk6@latest
go: 正在下载 go.k6.io/xk6 v0.5.0
go: 正在下载 github.com/Masterminds/semver/v3 v3.1.0
更新:指南已经更新 https://github.com/grafana/k6-docs/commit/fa7115d00d1f04c95047dedb37e3613602465bda
英文:
Seems the instructions are obsolete: if you see the doc on the github repo, the command is:
>go install go.k6.io/xk6/cmd/xk6@latest
go: downloading go.k6.io/xk6 v0.5.0
go: downloading github.com/Masterminds/semver/v3 v3.1.0
UPDATE: The instruction has been already updated https://github.com/grafana/k6-docs/commit/fa7115d00d1f04c95047dedb37e3613602465bda
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论