I installed Drush using Composer globally but when I try to clear the cache I get the following:

No Drupal site found, only 'drush' cache was cleared. [warning] 'all' cache was cleared. [success]

I did some digging around and think it may be due to MAMP but I was unable to solve that even by changing the Bash profile.

Heres' my Drush Status: enter image description here

Any ideas?


You need to:

cd /path/to/drupal/root;
drush cc all;

If you run Drush from outside of a Drupal root, or without a valid alias, actions can only apply to Drush itself, as it doesn't know what site you're trying to target.

  • I'm already in the root folder. – SlightlyClever Aug 12 '14 at 13:22
  • And the site is fully installed, and the user you're invoking Drush as has read access to settings.php? – Clive Aug 12 '14 at 13:23
  • Yeah, Site is completely installed and running on my local MAMP server. I'm the admin and I have read access to settings.php – SlightlyClever Aug 12 '14 at 13:28
  • Does drush status give you any insight? – Clive Aug 12 '14 at 13:31
  • Don't think so, seem fine to me. I've attached it above if you want to have a look :) – SlightlyClever Aug 12 '14 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.