今天开始学习laravel,laravel用compor 安装,在终端输入laravel new blog(project name)得时候,出现了以下问题laravel: command not found</span>
查看技术文档这么make sure to place the ~申请原因/.compor/vendor/bin directory in 播音主持考试内容your path so the laravel executable can be located by your system. 应当是要让~/.comp最近的时事热点or/vendor/bin/laravel在mac的环境变量里面。
在网上查看资料发现了有以下解决方论中美关系案:葡萄牙和西班牙
export path="~/.compor/vendor/bin:$path"
尽管可行,但是当终端关闭之后,就不行了。也就是每次创建项目的时候都必须要输入一次。那种只是临时的解决方案。
还有就是
nano ~/.bashrc
输入:
alias laravel='~/.compor/vendor/bin/laravel'
保存然后在终端输入:
source ~/.bashrc
关闭终端输入laravel new blog
可行。
好了,问题解决。
以上这篇laravel 出现command not found问题的解决方案就是www.887551.com分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持www.887551.com。
本文发布于:2023-04-08 08:40:08,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/d74941912de9efd86e54df73e162f7ab.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:laravel 出现command not found问题的解决方案.doc
本文 PDF 下载地址:laravel 出现command not found问题的解决方案.pdf
留言与评论(共有 0 条评论) |