I tried to install package via composer but it's keep telling me that this directory is not empty so how can I install package on non-empty folder using composer ? is there force install command ?
error message:
[InvalidArgumentException] Project directory Yii-GZero-2b/ is not empty.
You currently can't. 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.
You can check all the . files in the folder.
$ ls -la
Delete any . file in the folder and try again. It worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With