Open chx opened 6 years ago
Hi @chx thanks ofor trying the DrupalConsole project.
Starting on RC releases DrupalConsole must be installed per site. Install Drupal Console using composer global require
is no longer supported.
In order to get the project, you need to download per-site using composer. You can read more information about Launcher and per-site installation here: https://docs.drupalconsole.com/en/getting/project.html
I will update and remove the deprecated instructions for the composer global require
command.
composer global require drupal/console-launcher:~1.0
I seem to be having a similar issue though where I ran the curl process and when running I get the following error
[ERROR] DrupalConsole must be executed within a Drupal Site.
That is even when I run with the --root
option
From time to time I try to use Drupal Console and I never have quite managed to get it working. This project is just a vanilla Drupal tarball and after
composer global require drupal/console-launcher:~1.0
I gotSomething is wrong with your drupal.phar archive. Try downloading again by executing from your terminal: curl https://drupalconsole.com/installer -L -o drupal.phar
so I have done just that,
curl https://drupalconsole.com/installer -L -o /home/chx/.composer/vendor/bin/drupal
and outside of the project it runs at least➜ www ✗ drupal --version Drupal Console Launcher 1.8.0
but in the project itself it complains
[ERROR] Drupal Console is not installed at: " /mnt/c/www/example-com"
You must execute the following composer commands:
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
which is exactly what I wanted to avoid. #3253 seems related but it was fixed long ago. Note this is a Windows Subsystem for Linux which should be pretty much invisible to userspace but you never know.