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.

  • What version of Drush? – CG Monroe Feb 13 '18 at 17:48
  • Is there a composer.json file? – Jeff Mattson Feb 13 '18 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 Feb 19 '18 at 17:31
0

It comes from a commandfile like https://github.com/drupal-composer/drupal-project/blob/8.x/drush/policy.drush.inc

  • 1
    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 Feb 19 '18 at 17:34
  • The Github link returns a 404 error. – kiamlaluno Mar 16 '18 at 8:35

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.