I tried to replicate the same configuration as yours and got the same error using minikube when the ~/.kube/config directory is missing. After ensuring that the kubeconfig file is valid and properly configured, installing istioctl worked on my end. Validate and reset the kubeconfig if it is present on your Mac as it is required by kubectl to connect to a Kubernetes cluster.