Laravel PHP命令未找到 [英] Laravel PHP Command Not Found
问题描述
我一直在使用作曲家没有问题安装Laravel,但是当我尝试执行的 laravel 的在我的终端我有这样的典型错误:
I have installed Laravel using composer without problems, but when I try to execute "laravel" in my terminal I have this typical error:
-bash:laravel:找不到命令
-bash: laravel: command not found
如果读官方网站的文档,我需要做的是:
If a read the documentation of the official site I need to do that:
请确保放置在〜/ .composer /供应商/ bin目录在PATH所以laravel可执行文件运行时发现的 laravel 的在终端命令。
Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravel executable is found when you run the laravel command in your terminal.
但我不知道怎么做(我在终端控制台命令新)
But I don't know how to do (I'm new on terminal console commands).
您能帮我吗?谢谢!
推荐答案
好吧,我这样做,和它的作品:
Ok, I did that and it works:
nano ~/.bash_profile
和粘贴
export PATH=~/.composer/vendor/bin:$PATH
重新启动终端并享受;)
Restart the terminal and enjoy ;)
这篇关于Laravel PHP命令未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!