Zsh: command not found: xk6

I’ve tried installing xk6 but when I run a command I keep getting this error. I’ve tried all the resources online but I just can’t find out how to fix this.

Can anyone give me the exact steps I need to follow to fix this?

I’m using macOS on an M1 Mac.

1 Like

hey! I think you need to try

‘./k6 run script.js’

@d33psan

Which error? Do you have Go installed? It would be nice to have gvm installed, so you can switch between Go versions.

You’ll want to make sure xk6 is in your $PATH.

whereis xk6
echo $PATH

Make sure it’s in there otherwise mv xk6 to your path.