I'm just trying to use Drush with Backdrop for the first time. Most of the commands seem to be working for me, but when I try to download a module I get the following error:
drush dl rabbit_hole End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /Users/timothyerickson/Sites/rivertonb/modules/rabbit_hole.zip or /Users/timothyerickson/Sites/rivertonb/modules/rabbit_hole.zip.zip, and cannot find /Users/timothyerickson/Sites/rivertonb/modules/rabbit_hole.zip.ZIP, period. Error: Project rabbit_hole could not be found.
The following drush commands all work fine:
- drush cc all
- drush cron
- drush st
Hello @stpaultim.
Under the hood drush uses the
unzip
program to expand the *.zip files that drush downloads.The error you are receiving looks to be a problem with that part of the process.
I just downloaded
rabbit_hole
withdrush
fine on my computer so i'm guessing there is a configuration or software difference between our two computers.Here is what I have:
One thing I use to mitigate machine difference is I run my apps in Lando so that I know each backdrop app will have the right tools available to it, php, extensions, unzip, os etc.
So, I can recommend Lando otherwise if we can identify a difference in your machine config we can probably sort it out. I start by checking that you have
unzip
and what version.