$ drush

Fatal error: Uncaught Error: Class 'Drush\Config\Environment' not found in D:\wamp64\www\workbench8\vendor\drush\drush\drush.php:62
Stack trace:
#0 D:\wamp64\www\workbench8\vendor\drush\drush\drush(4): require()
#1 {main}
thrown in D:\wamp64\www\workbench8\vendor\drush\drush\drush.php on line 62

----------------

$ composer require drush/drush

Using version ^10.1 for drush/drush
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 28 installs, 0 updates, 0 removals
- Installing webmozart/assert (1.6.0): Loading from cache
- Installing webmozart/path-util (2.3.0): Loading from cache
- Installing webflo/drupal-finder (1.2.0): Loading from cache
- Installing symfony/polyfill-php72 (v1.13.1): Downloading (100%)
- Installing symfony/var-dumper (v4.4.1): Downloading (100%)
Skipped installation of bin Resources/bin/var-dump-server for package symfony/var-dumper: name conflicts with an existing file
- Installing symfony/finder (v4.4.1): Downloading (100%)
Cleaning: symfony/finder
- Installing jakub-onderka/php-console-color (v0.2): Loading from cache
- Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
- Installing nikic/php-parser (v4.3.0): Loading from cache
Skipped installation of bin bin/php-parse for package nikic/php-parser: name conflicts with an existing file
- Installing dnoegel/php-xdg-base-dir (v0.1.1): Loading from cache
- Installing psy/psysh (v0.9.12): Loading from cache
Skipped installation of bin bin/psysh for package psy/psysh: name conflicts with an existing file
- Installing container-interop/container-interop (1.2.0): Loading from cache

Installation failed, reverting ./composer.json to its original content.

[ErrorException]
proc_open(): CreateProcess failed, error code - 5

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [
]...

Comments

bmustafa created an issue. See original summary.

bmustafa’s picture

Status: Active » Needs review

Here is what i have done to fix the issue::

  1. Re-download Drupal 8.8.1 and extract in a fresh new folder - neat and clean

  2. Globally Applied https://github.com/zaporylie/composer-drupal-optimizations as:

    composer global require zaporylie/composer-drupal-optimizations

  3. As Added Performance boost bonus - also globally applied :

    ref to https://github.com/hirak/prestissimo

    composer global require hirak/prestissimo

Now Composer works - without out-of-memory issues.
Now Drush works again.

And Of course finally have imported my site via Backup and Restore Module on the fresh clean baseline .

Best Regards

cilefen’s picture

Category: Task » Support request
Status: Needs review » Fixed

Thank you for sharing your findings.

bmustafa’s picture

One Extra complimentary comment...

As per above, my setup is working top-notch - expect i found another issue next day, when running "drush cex" whereby i got an error stating it cannot connect to drupal due to propable sql cli shell contraint - (sorry i forgot to grab that error)..

Anyhow, i have done Composer update drush/drush ----- then all perfect since then.

Cheers

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

anybody’s picture

Downgrade to webflo/drupal-finder:1.1.0 will fix the problem.

anybody’s picture