(安装 xk6)在安装 xk6 使用 go 时,如何解决 PATH 问题

huangapple go评论153阅读模式
英文:

(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

huangapple
  • 本文由 发表于 2021年11月25日 17:15:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/70108488.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定