Not able to use drush

Created on 22 October 2024, 4 months ago

Problem/Motivation

This issue is not related to this module, but I need your help.

I have installed drush globally as well locally via composer by using following commands.

composer global require drush/drush

composer require drush/drush

When I run drush command, it says

[preflight] Package "drupal/core" is not installed

Any idea what is happening here. I have been looking for a solution for days. I have searched a lot, but nothing is working.

I am on windows 10.

💬 Support request
Status

Active

Version

2.2

Component

Miscellaneous

Created by

🇵🇰Pakistan ugintl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ugintl
  • Status changed to Closed: won't fix about 1 month ago
  • Not related to this module & not sure about what could be happening in your specific installation, sorry!

    Only thing that i can suggest with that info is to ensure you are executing drush from your site composer installation e.g: "vendor/bin/drush status", or to check what drush location you are running "whereis drush", you should see something similar to "/var/www/html/vendor/bin/drush" if using ddev.

    Also ensure your site installation main composer core dependency "drupal/core" or "drupal/core-recommended", helpful command: composer why "drupal/core".

    Hope it helps a bit!

Production build 0.71.5 2024