-bash: minikube: command not found
This looks like an issue with your path:
- Restart the terminal.
- Did you add minikube to the path per the documentation?
Here’s an easy way to add the Minikube executable to your path:
sudo mv minikube /usr/local/bin
- Verify the path with
which minikube
.
Edited to address new info in questions:
This is still a path issue. It appears that your install went to /usr/local/Cellar/minikube/1.5.2
not /usr/local/bin/minikube
. The different aliases are looking for the latter directory which is why this is not working for you. You should move the directory as per the documentation so that the scripts with the various shortcuts can find the proper link.
Try using
brew link minikube
which solved the issue for me. After installing minikube
using Homebrew
(brew install minikube
) we need to run the above command which will create symlinks for us. Then the minikube
command works fine.
my way of solving this:
$ cd /usr/local/Cellar/minikube/
$ sudo ln -s 1.5.2 current
Password:
$ cd /usr/local/bin/
$ ln -s /usr/local/Cellar/minikube/current/bin/minikube
$
$ minikube version
minikube version: v1.5.2
commit: 792dbf92a1de583fcee76f8791cff12e0c9440ad
$