I have been struggling since past hour for installing drush 8 without uninstalling drush7.
Here are the steps i followed:
Open your terminal
1. Get latest drush
git clone --branch master https://github.com/drush-ops/drush.git
2. Get composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
3. Install Drush
4. Create an alias for Drush 8
vi ~/.bashrc (ubuntu)
Add this line to file
Run Drush 8
Now it’s time to test that everything we did works well. Type:
Thanks for reading it.