【问题标题】:laravel command not found error in gitlaravel 命令在 git 中找不到错误
【发布时间】:2018-10-09 22:22:14
【问题描述】:

我想从 git 创建一个项目。 Homestead 和 Vagrant 安装完成。但是在 git 中,当我运行 laravel new deepdivecms 时,它说 laravel command not found。

如果我说 $echo $PATH 它会说

**/c/Users/Cagri/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/Cagri/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/xampp/php:/c/composer:/c/Program Files/dotnet:/c/Program Files/nodejs:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/HashiCorp/Vagrant/bin:/cmd:/c/Users/Cagri/AppData/Roaming/Composer/vendor/bin:/c/Users/Cagri/AppData/Local/Microsoft/WindowsApps:/c/Users/Cagri/AppData/Roaming/npm:/c/Program Files/Microsoft VS Code Insiders/bin:/c/Users/Cagri/AppData/Local/atom/bin:/usr/bin/vendor_perl:/usr/bin/core_perl**

你能帮我做点什么吗?谢谢...

【问题讨论】:

标签: git laravel homestead


【解决方案1】:

在常规 CMD 会话中(可以识别 laravel),输入:

where laravel

然后确保在您的 bash 会话中存在相同的文件夹(或将其添加到您的 ~/.bashrc 中的 PATH)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-19
    • 1970-01-01
    • 2015-08-23
    • 1970-01-01
    • 1970-01-01
    • 2016-01-03
    • 2020-10-25
    相关资源
    最近更新 更多