T
T
Twelfth Doctor2017-05-04 20:38:22
linux
Twelfth Doctor, 2017-05-04 20:38:22

Why can't I create a Laravel project using Composer?

Hello! For some reason I can't create a new Laravel project using Composer

[email protected]:~/sites/khcp/web$ sudo composer create-project laravel/laravel /home/dart/sites/khcp/web
Installing laravel/laravel (v5.4.21)

                                                              
  [InvalidArgumentException]                                  
  Project directory /home/dart/sites/khcp/web/ is not empty.  
                                                              

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

[email protected]:~/sites/khcp/web$ ls -l
total 0

ba6353c50bbd4fc3a87a93ea5f9050da.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor, 2017-05-04
@v_decadence

Maybe there are hidden files?
ls-la

T
Twelfth Doctor, 2017-05-04
@verdex

The problem was solved by deleting the folder and creating it again

rm -r web
mkdir web

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question