1

I'm currently downloading drush using Composer on my Drupal 8 Project and I'm having some issues during download as shown in the screenshot below. I have already installed composer globally and I'm not sure what else I'm missing

enter image description here

clestcruz
  • 1,081
  • 3
  • 31
  • 75
  • Can you try `curl https://packages.drupal.org/8/packages.json` to see whether your server can reach the drupal server? – Nico Haase Jan 09 '18 at 12:36

1 Answers1

-1

You have to install drush globally into root directory not in the drupal folder.

  1. Install Composer globally.
  2. Add composer's bin directory to the system path by placing export PATH="$HOME/.composer/vendor/bin:$PATH" into your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users).
  3. Install latest stable Drush: composer global require drush/drush.
  4. Verify that Drush works: drush status.

you can try composer global require drush/drush:8.x-dev and update the composer as well.

Chandraveer
  • 161
  • 1
  • 9