Closed kviolka closed 6 years ago
I tried this on a fresh setup.
I found the solution Some symfony components were installed from v4.0, that conflicts with the requirement of drupal/console-core.
Solution for me was to downgrade the packages:
composer require symfony/debug:~3.0 composer require symfony/dom-crawler:~3.0
After that I could add drupal/console fine.
thanks for the info!
The solution from @kviolka (downgrading two packages) worked for me. It would be great to resolve these dependencies within BLT.
Output from BLT doctor, in case it is useful:
www-data@a6ba96db0942:/app$ blt doctor
[warning] The xDebug extension is loaded. This will significantly decrease performance.
+---------------------------+--------------------------------------------+
| Property | Value |
+---------------------------+--------------------------------------------+
| %paths.%root | /app/docroot |
| %paths.%site | sites/default |
| %paths.%modules | sites/all/modules |
| %paths.%themes | sites/all/themes |
| %paths.%config-sync | /app/docroot/../config/default |
| %paths.%files | sites/default/files |
| %paths.%temp | /tmp |
| %paths.%private | /app/files-private |
| admin-theme | adminimal_theme |
| alias-searchpaths.0 | /app/drush/sites |
| blt-version | 9.1.2 |
| bootstrap | Successful |
| composer-version | Composer version 1.6.5 2018-05-04 11:44:59 |
| config-sync | /app/docroot/../config/default |
| db-driver | mysql |
| db-hostname | database |
| db-name | drupal8 |
| db-password | drupal8 |
| db-port | 3306 |
| db-status | Connected |
| db-username | drupal8 |
| drupal-settings-file | sites/default/settings.php |
| drupal-version | 8.5.6 |
| drush-alias-files.0 | /app/drush/sites/cew.site.yml |
| drush-conf.0 | /app/vendor/drush/drush/drush.yml |
| drush-conf.1 | /app/drush/drush.yml |
| drush-conf.2 | /app/docroot/sites/default/local.drush.yml |
| drush-script | /app/vendor/bin/drush |
| drush-temp | /tmp |
| drush-version | 9.3.0 |
| files | sites/default/files |
| install-profile | lightning |
| modules | sites/all/modules |
| php-bin | /usr/local/bin/php |
| php-conf.1 | false |
| php-os | Linux |
| private | /app/files-private |
| root | /app/docroot |
| site | sites/default |
| stacks.drupal-vm.inited | false |
| stacks.dev-desktop.inited | false |
| temp | /tmp |
| theme | prism |
| themes | sites/all/themes |
| uri | cew.lndo.site |
+---------------------------+--------------------------------------------+
If anyone else comes here and wants to know a swift solution, try this:
composer require drupal/console:~1.0 \
> --prefer-dist \
> --optimize-autoloader \
> --no-update
This will add the requirement to package.json
, then run:
composer update
To resolve dependencies. MAGIC!
This what I a getting vagrant@local:/var/www/web$ drupal drupal: command not found :(
My system information:
Output of
blt doctor
:When I run this command: