Skip to content

Commit

Permalink
Add installation troubleshooting to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Aug 24, 2022
1 parent 1ee61de commit c65df26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ You can [download binaries](https://github.com/grafana/xk6/releases) that are al
$ go install go.k6.io/xk6/cmd/xk6@latest
```

This will install the `xk6` binary in your `$GOPATH/bin` directory.

If you're getting a `command not found` error when trying to run `xk6`, make sure that you precisely follow the [Go installation instructions](https://go.dev/doc/install) for your platform.
Specifically, ensure that the `$GOPATH/bin` directory is part of your `$PATH`. For example, you might want to add this to your shell's initialization file: `export PATH=$(go env GOPATH)/bin:$PATH`. See [this article](https://go.dev/doc/gopath_code#GOPATH) for more information.

If you're still struggling with this, consider downloading a pre-built binary from [our releases page](https://github.com/grafana/xk6/releases), and placing the binary in a directory already part of your `$PATH`.


## Command usage

Expand Down

0 comments on commit c65df26

Please sign in to comment.