Home > Net >  Composer install in a non-empty folder
Composer install in a non-empty folder

Time:12-15

Goal I want to install an application in the same folder using composer. The following steps:

mkdir projectX
cd projectX
touch docker-compose.yml
composer create-project some/app .

Response:

[InvalidArgumentException.]                                                   
  Project directory "/home/ml/www/projectX
  e/adbla/github-resume/." is not empty.  

Question Is there a composer parameter that ignores this?

CodePudding user response:

You currently cant. There is/was a discussion going on over on GitHub which you can read about here: https://github.com/composer/composer/issues/1135.

For now however, you'll need to create a new directory and then migrate your files over, or vice-versa.

  • Related