Installing Drush and Drupal 8 on Laragon
I installed Drupal 8 on Laragon and everything is working just fine, except I can't get Drush to work.
I installed Drush through composer (globally and inside my Drupal project folder) and when I want to run a command in the Laragon terminal, my computer (windows 10), wants to run a program: drush.launcher. I need to select a program to open the drush.launcher file with.
Just like the problem described here: https://github.com/drush-ops/drush/issues/1696
Do I need to select cmd.exe for opening the drush.launcher file?
I hope someone else already got Drush working.
ps. I placed this in the wrong category and I don't see the option to change it.
I'm using Drush under Windows 7 and Windows 10.
I dont' remember that I had to do anything special.
I just installed it via composer command:
composer global require drush/drush:8.1.0
And added in my environment variables this path
PS: If you check inside this directory you should see a script drush.bat.
And then I could use regular drush commands.
I was getting recently errors with drush 8.x.x on some drush commands, like drush up:
"The filename, directory name, or volume label syntax is incorrect."
I was able to fix it by adding an alias in cmder by executing this command in the console
alias drush=php C:\Users\Lionel_E\AppData\Roaming\Composer\vendor\drush\drush\drush.php $*
Hope it helps anyone using drupal and drush.