Installing Drush via Composer

Since the standard drush installation could bring to some issues, we prefer to install drush via Composer, following the steps below.

Install drush globally via composer:

$ composer global require drush/drush

Make the drush command globally available, on Mac:

$ ln -s ~/.composer/vendor/bin/drush /usr/bin/local/drush

or on Ubuntu:

$ ln -s ~/.composer/vendor/bin/drush ~/bin/drush

Check the installation:

$ drush core-status

References

http://docs.drush.org/en/master/install/
https://www.drupal.org/node/2366283
https://www.drupal.org/node/1791676
http://www.drush.org/en/master/install-alternative/

  • Lenin Jose Meza Zarco

    In CentOs 7, i need to install php-xml and create the symbolic link:

    $ sudo ln -s ~/.config/composer/vendor/bin/drush /usr/local/bin/drush

Categories

Category BootstrapCategory CoffeescriptCategory DrupalCategory GravCategory HTMLCategory JavascriptCategory JoomlaCategory jQueryCategory LaravelCategory MagentoCategory PHPCategory SharePointCategory SpringCategory ThymeleafCategory WordPressCategory Workflow

Comments

Developed and designed by Netgloo
© 2017 Netgloo