To install Drush in Windows, we will need to use Cygwin that provides a Linux-like environment for Windows.
We are now going to install Drush using Composer in Cygwin:
Download and install Cygwin
In the packages section install the following packages:
ncurses
: This is a library used for showing text-based user interface.git
: This is a version control packagebsdtar
: This is used to untar compressed tar files.curl
: This is a client-side URL transfer package.
Now installer Composer, a PHP dependency package management tool, using the Composer installer.
From Cygwin terminal, type the following command to install Drush 8:
composer global require drush/drush:8.*
Note
Learn more about Cygwin project at http://www.cygwin.com/. For more information on installing Drush, check Install Drush on Windows—the easy way at https://www.drupal.org/node/594744