Laravel的“代客安装"功能未找到 [英] Laravel "valet install" not found
问题描述
我正在尝试设置Laravels 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?
几天前我切换到了OSX.在此之前,我是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屋!