欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Installing Drush on Windows 怎样在windows上安装drush 有大用

Installing Drush on Windows

Last updated September 23, 2015. Created on October 3, 2009.
Edited by hassManjit.SinghSebCorbinpkiffLog in to edit this page.

Install Drush on Windows - The easy way.

Installing latest Drush on Windows is no more fun. Since composer is required everything has changed to the bad. The documentation on drush.org and composer is incomplete and lacks highly important requirements.

Here are the complete steps you need to take:

  1. Install Cygwin
    1. Install ncurses package. You need to select ncurses manually in cygwin setup. If you miss to install this you will get an error message that tput is missing.
    2. Install Git package
    3. Install bsdtar package or you cannot restore archives and get errors like Unable to untar and Unable to extract site archive tarball.
    4. Install Curl package or you cannot disable modules.
  2. Now install Composer for Windows globally.
  3. Install Drush the common way. e.g. Drush 7.x (stable):
    composer global require drush/drush:7.*
    

NOTE: Drush cannot run with GnuWin32 as it has no sh.exe support.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.


普通分类: