Laravel“代客安装"未找到 [英] Laravel "valet install" not found

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

问题描述

我正在尝试设置 Laravel Valet(Valet 是 Mac 的 Laravel 开发环境).一切正常,直到涉及代客安装"命令.该命令必须在终端中执行.但我收到错误找不到命令".有什么想法,为什么?我是否必须更新我的 PATH 或其他东西?

I am trying to set up Laravels Valet (Valet is a Laravel development environment for Mac). Everything works until it comes to the command "valet install". This command must be executed in terminal. But I got the error "command not found". Any ideas, why? Do I have to update my PATH or something else?

几天前我切换到了 OS X.在此之前,我是 Windows 用户.所以我是一个完全的新手.

I switched to OS X a few days ago. Before that, I was a windows user. So I am a total newbie.

推荐答案

是的,你需要确保 ~/.composer/vendor/bin 目录在你系统的 PATH,你可以通过运行来检查:

Yes, you need to make sure that ~/.composer/vendor/bin directory is in your system's PATH, you can check this by running:

echo $PATH

如果你在那里看不到它,那么你需要将它添加到你的 ~/.bash_profile:

If you can't see it there, then you need to add this to your ~/.bash_profile:

export PATH=$PATH:~/.composer/vendor/bin

这篇关于Laravel“代客安装"未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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