Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.4.* - The "" directory does not exist when running artisan

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?

like image 910
bsoleimany Avatar asked May 16 '17 14:05

bsoleimany


2 Answers

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.

like image 78
amflare Avatar answered Nov 15 '22 14:11

amflare


I had been facing the same issue and I found that there was an empty folder in Module Directory. I had just deleted that Module Directory and again started with new Module Directory and it had solved the problem.

like image 1
Jignasa Avatar answered Nov 15 '22 16:11

Jignasa