Problem with Krew “Error: flags cannot be placed before plugin name”

I have a local minikube cluster (version: v1.21.0) with kubectl:

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.7", GitCommit:"132a687512d7fb058d0f5890f07d4121b3f0a2e2", GitTreeState:"clean", BuildDate:"2021-05-12T12:40:09Z", GoVersion:"go1.15.12", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.7", GitCommit:"132a687512d7fb058d0f5890f07d4121b3f0a2e2", GitTreeState:"clean", BuildDate:"2021-05-12T12:32:49Z", GoVersion:"go1.15.12", Compiler:"gc", Platform:"linux/amd64"} 

I installed krew according to the documentation: https://krew.sigs.k8s.io/docs/user-guide/setup/install/

Then, when I try to execute any command this is the result:

Error: flags cannot be placed before plugin name: --cluster

For example:

minikube kubectl krew version
Error: flags cannot be placed before plugin name: --cluster

1 answer

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum