Uninstall Laravel Valet

三世轮回 提交于 2019-12-02 18:25:21

I guess I find the solution after a little bit playing around.

It seems Valet uninstall command does not work as expected. To uninstall it first run the composer command to uninstall the php dependencies:

$ composer global remove laravel/valet

then to uninstall the dependencies installed with the Homebrew, first run;

$ brew list

just so you know we are in the same page then if you see dnsmasq and php70 in case you do not want them or you have php7 installed in another approach (like me) run:

$ brew uninstall dnsmasq

and

$ brew uninstall php70

Then go to your user directory and delete the .valet hidden directory or run the terminal command like so:

$ sudo rm -r ~/.valet

An official response here: https://github.com/laravel/valet/issues/341#issuecomment-287048987

valet uninstall
sudo brew services stop nginx
sudo brew services stop php70
sudo brew services stop dnsmasq
brew uninstall nginx
brew uninstall php70
brew uninstall dnsmasq
rm -rf ~/.valet
rm /usr/local/bin/valet
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!