Laravel 5.4.*-“"运行artisan时目录不存在 [英] Laravel 5.4.* - The "" directory does not exist when running artisan

查看:161
本文介绍了Laravel 5.4.*-“"运行artisan时目录不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我重新安装了 Ubuntu Server 14.04 ,目前我正在其中尝试安装 Laravel 项目.

I have a fresh installation of Ubuntu Server 14.04 in which I'm currently trying to install my Laravel project on.

我已将整个存储库移至所需的文件夹中,但是当我运行命令时

I have moved the entire repository into the folder required, but when I run the command

php artisan

在该目录中,终端返回错误说明

within that directory, the terminal returns an error stating

[InvalidArgumentException]

The "" directory does not exist.

有人知道我可以做些什么来解决这个问题?

Does anyone know what I can possibly do to solve this issue?

推荐答案

我遇到了同样的问题,结果发现由于定义不正确的.gitignore,我没有克隆./config目录.因此,请确保原始项目位置能够向上推该目录,并且该目录位于新位置.

I had this same issue and it turned out that I was not cloning the ./config directory because of a poorly defined .gitignore. So make sure the original project location was able to push that directory up and that it exists in the new location.

克隆之后,我重新运行composer install,一切都成功了.

After the clone I re-ran composer install and it all worked.

这篇关于Laravel 5.4.*-“"运行artisan时目录不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆