Laravel“代客安装"未找到未找到、代客、Laravel、quot

2023-09-07 08:57:05 作者:木槿花开

我正在尝试设置 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
 
精彩推荐
图片推荐