![]() ![]() ![]() One for "User variables" and one for "System variables". Change the "View by" option to "Small icons".To add a directory to the PATH, we need to edit the PATH System Variable Adding Our Drush Folder to the System Path We can't run it from anywhere else though, so we need to add that path to our Environment Variables. This will install Drush to "C:/Users//AppData/Roaming/Composer/vendor/drush/drush" In the Git Bash, type "composer global require drush/drush:7.*" and press Enter.In fact, it's a single line in the command line. Now, we're ready to install Drush with composer. Now, when I open a Git bash, and type "composer -version" and press Enter, we'll see that I have version 1.0-dev installed! Install Drush via Composer Browse to C:\wamp\bin\php\php5.5.12\php.exe. ![]() I have Wamp installed so mine is at: C:\wamp\bin\php\php5.5.12\php.exe This will be different based on whether you're using Wamp, Xampp, etc. Now, we need to tell Composer where php is installed. Scroll down and click on "Composer-Setup.exe".Let's start out by install Composer for Windows. For example, you have to install Composer first, in order to install Drush, but Composer is required for Drupal 8 (so you might need to install it eventually anyway) and once Composer is installed, installing Drush is just a single command in the command line. The process to install Drush 7.0.0 and up is in some ways more complicated than previous versions, it is also much simpler for other reasons. ( Click here for a video on installing Git for Windows) This video will show you how to install Drush on a Windows machine to be used with Git for Windows. While you can install Drush to be used with the default command prompt, if you take a look at the Install page on, you'll see the disclaimer that says Windows support is still lagging, and lower on the page, that while most Drush commands will run in a Windows CMD shell, the Git Bash shell provided by Git for Windows is preferred. If you’re using another AMP stack, such as WAMP, in this case, you'll need to install Composer to get the latest release of Drush. So, if you’re using that, you already have Drush on your machine, and you’re ready to begin the series. Installing Drush on Windows with ComposerĪcquia Dev Desktop comes with Drush pre-installed. ![]()
0 Comments
Leave a Reply. |