Uninstall Laravel Valet

前端 未结 2 448
难免孤独
难免孤独 2021-01-31 20:18

I installed Valet for the first time and I had some problems listed below:

  1. It throws an error saying:

Unable to determine linked PHP.

2条回答
  •  深忆病人
    2021-01-31 21:04

    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
    

提交回复
热议问题