You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drupal 9 composer install console is not able to pick the correct path through autoloader vendor/bin/drupal
Problem/Motivation
When I install Drupal console using composer, it installs successfully and but when you execute it it throw the following error.
Warning: require(/opt/drupal/vendor/drupal/console/bindrupal.php): Failed to open stream: No such file or directory in /opt/drupal/vendor/bin/drupal(21) : eval()'d code on line 3
Fatal error: Uncaught Error: Failed opening required '/opt/drupal/vendor/drupal/console/bindrupal.php' (include_path='.:/usr/local/lib/php') in /opt/drupal/vendor/bin/drupal(21) : eval()'d code:3
Stack trace:
#0 /opt/drupal/vendor/bin/drupal(21): eval() #1 {main}
thrown in /opt/drupal/vendor/bin/drupal(21) : eval()'d code on line 3 Details to include:
Why are we doing this? Above all, a summary should explain why a change is needed, in a few short sentences.
The code the drupal binary starts working.
This require DIR is existing other composer modules. Not sure why it is not there.
Could you please update this?
The text was updated successfully, but these errors were encountered:
ayappans
changed the title
Drupal 9 composer install console is not able to pick the correct through autoloader vendor/bin/drupal
Drupal 9 composer install console is not able to pick the correct path through autoloader vendor/bin/drupal
Jul 15, 2021
Drupal 9 composer install console is not able to pick the correct path through autoloader vendor/bin/drupal
Problem/Motivation
When I install Drupal console using composer, it installs successfully and but when you execute it it throw the following error.
Warning: require(/opt/drupal/vendor/drupal/console/bindrupal.php): Failed to open stream: No such file or directory in /opt/drupal/vendor/bin/drupal(21) : eval()'d code on line 3
Fatal error: Uncaught Error: Failed opening required '/opt/drupal/vendor/drupal/console/bindrupal.php' (include_path='.:/usr/local/lib/php') in /opt/drupal/vendor/bin/drupal(21) : eval()'d code:3
Stack trace:
#0 /opt/drupal/vendor/bin/drupal(21): eval()
#1 {main}
thrown in /opt/drupal/vendor/bin/drupal(21) : eval()'d code on line 3
Details to include:
Steps
2 composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
it throws the above error.
I solved this problem by changing the following code in vendor/console/bin/drupal.php
The code the drupal binary starts working.
This require DIR is existing other composer modules. Not sure why it is not there.
Could you please update this?
The text was updated successfully, but these errors were encountered: