Laravel 5.4.* - The “” directory does not exist wh

2019-06-25 08:02发布

问题:

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?

回答1:

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.

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