问题描述
我是第一次安装Valet,但下面列出了一些问题:
I installed Valet for the first time and I had some problems listed below:
- 它抛出一个错误:
即使我通过 php-osx.liip.ch 安装了PHP 7.1,也可以继续进行并通过自制软件安装PHP 7.0!
Even though I have PHP 7.1 installed by php-osx.liip.ch so it just goes ahead and installs PHP 7.0 with homebrew anyway!
- 在非Laravel项目中,我的本地主机无法正常工作,并且它会做出响应:
然后代客本身也不起作用!
and then Valet itself does not work either!
- 我在代客域名上收到一条错误消息:
所以我决定通过运行$ valet uninstall
来卸载它,它返回相应的响应,但是当我运行$ valet
时,它就已经存在了!如何正确卸载它?
So I decided to uninstall it by running $ valet uninstall
, it returns the corresponding response but then when I'm running $ valet
it is all there! How to uninstall it correctly?
顺便说一句,我也在 Valet GitHub页面上发布了此问题.
推荐答案
我想我在玩了一段时间后找到了解决方案.
I guess I find the solution after a little bit playing around.
代客uninstall
命令似乎无法正常工作.要卸载它,请先运行composer命令以卸载php依赖项:
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
然后卸载与Homebrew一起安装的依赖项,首先运行;
then to uninstall the dependencies installed with the Homebrew, first run;
$ brew list
只要您知道我们在同一个页面中,那么如果您看到dnsmasq
和php70
,如果您不想使用它们,或者您已经以另一种方式(如我)安装了php7,请运行:
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
和
$ brew uninstall php70
然后转到您的用户目录并删除.valet
隐藏目录或运行终端命令,如下所示:
Then go to your user directory and delete the .valet
hidden directory or run the terminal command like so:
$ sudo rm -r ~/.valet
这篇关于解除安装Laravel Valet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!