System: Ubuntu 14.x
I recently have installed Drush using
composer global require drush/drush:dev-master code and it got installed successfully.
I ran command
which drush and the terminal gave me the path
The problem is, I am not able to execute any commands from project root. It gives me below error:
PHP Fatal error: Cannot redeclare composerRequireDrupal8() (previously declared in /var/lib/composer/vendor/composer/autoload_real.php:63) in /var/www/html/study/drupal/8/vendor/composer/autoload_real.php on line 70
But when I execute below command from project root:
then Drush works perfectly well.
Is there any way I can use Drush from project root? Or have I made any mistakes in installation? Please help.
PS: I have tried updating composer and composer self-update but it did not help.