Unable to start meshery after installing

Previously minikube was not started and made PLATFORM = docker which in case the wrong choice.
Now I performed these steps for the minikube as local Kubernetes
minikube start
then
curl -L https://meshery.io/install | PLATFORM=kubernetes bash -
and after that

sudo cp ~/.minikube/ca.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates

then
mesheryctl system start
and It worked.