1

I'm using D7 and I'm seeing the following error message any time I try to use Drush to install a module:

This codebase is assembled with Composer instead of Drush. Use composer update and composer require instead of drush pm-updatecode and drush pm-download. You may override this error by using the --pm-force option.

Why does Drush generate that error message? The website was not built using Composer (though there are other Composer-based Drupal project on the same web server).

FWIW, using the --pm-force option works just fine. I would just understand the reason of that error message.

3
  • What version of Drush?
    – CG Monroe
    Commented Feb 13, 2018 at 17:48
  • Is there a composer.json file? Commented Feb 13, 2018 at 18:54
  • The website with the drush message does not have a compser.json file. Another Drupal website located in a different directory does not get the above message. Both sites are using the same version of Drush (version 8.1.15).
    – oraculi
    Commented Feb 19, 2018 at 17:31

1 Answer 1

2

It comes from a command file like policy.drush.inc.

1
  • 2
    This is helpful, but I'm still trying to figure out why one website is generating the message and another is not, when as far I can tell they are otherwise identical (same version of Drupal, same version of Drush).
    – oraculi
    Commented Feb 19, 2018 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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