解除安装Laravel Valet [英] Uninstall Laravel Valet

查看:209
本文介绍了解除安装Laravel Valet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次安装Valet,但下面列出了一些问题:

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

  1. 它抛出一个错误:

无法确定链接的PHP.

Unable to determine linked PHP.

即使我通过 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!

  1. 在非Laravel项目中,我的本地主机无法正常工作,并且它会做出响应:

ERR_EMPTY_RESPONSE

ERR_EMPTY_RESPONSE

然后代客本身也不起作用!

and then Valet itself does not work either!

  1. 我在代客域名上收到一条错误消息:

无法访问该站点laravel_from_scratch.dev的服务器DNS 找不到地址.

This site can’t be reached laravel_from_scratch.dev’s server DNS address could not be found.

所以我决定通过运行$ 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

只要您知道我们在同一个页面中,那么如果您看到dnsmasqphp70,如果您不想使用它们,或者您已经以另一种方式(如我)安装了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆