Skip to main content
improved grammar and formatting
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How todo I install Drush 9 under windowson Windows 7 with Composer?

Should I googled lotsglobally install Drush and use it locally, but could not solved the issue. I am using Php 7.2 with Apache.

or should I am not sure which one is good idea, any one will work for me:use install and use it locally?

  1. Install Drush globally and then use locally ?
  2. Or Install Drush site / project wise and use locally?

I installed globally installed it with composer. Then added the PATH to Environment PATH variable i.e.Composer, then added this "CC:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" inHossain\AppData\Roaming\Composer\vendor\drush\drush to the PATH. "Md. Shafiq Hossain" is my user name variable.

But when iWhen I change the current directory from command window to "CC:\My Work2\src\Drupal\clientname\projectname"Work2\src\Drupal\clientname\projectname and type "Drush version"drush version, it gives me the following error:

'C:/Users/Md.' is not recognized as an internal or external command,operable program or batch file

'C:/Users/Md.' is not recognized as an internal or external command, operable program or batch file

TriedI tried with the project wise. InstalledI installed correctly but in command prompt when type "Drush version", giving "Drush is not recognize as internal or external command" messagebut drush version returns the following error.

Drush is not recognize as internal or external command

If anyone can help me on this will be great!!.

How to install Drush 9 under windows 7 with Composer

I googled lots, but could not solved the issue. I am using Php 7.2 with Apache.

I am not sure which one is good idea, any one will work for me:

  1. Install Drush globally and then use locally ?
  2. Or Install Drush site / project wise and use locally?

I installed globally with composer. Then added the PATH to Environment PATH variable i.e. added this "C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" in the PATH. "Md. Shafiq Hossain" is my user name.

But when i change the directory from command window to "C:\My Work2\src\Drupal\clientname\projectname" and type "Drush version", it gives me the following error:

'C:/Users/Md.' is not recognized as an internal or external command,operable program or batch file

Tried with the project wise. Installed correctly but in command prompt when type "Drush version", giving "Drush is not recognize as internal or external command" message.

If anyone can help me on this will be great!!

How do I install Drush 9 on Windows 7 with Composer?

Should I globally install Drush and use it locally, or should I use install and use it locally?

I globally installed it with Composer, then added C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush to the PATH variable.

When I change the current directory C:\My Work2\src\Drupal\clientname\projectname and type drush version, it gives me the following error.

'C:/Users/Md.' is not recognized as an internal or external command, operable program or batch file

I tried with the project wise. I installed correctly, but drush version returns the following error.

Drush is not recognize as internal or external command

If anyone can help me on this will be great.

Remove console tag as this is about Drush and used proper list (and some random improvements to get more than 6 characters change).
Source Link

I googled lots, but could not solved the issue. I am using Php 7.2 with Apache.

I am not sure which one is good idea, any one will work for me:

  1. Install Drush globally and then use locally ?
  2. Or Install Drush site / project wise and use locally?
  • I installed globally with composer. The add the PATH to Environment PATH variable i.e. added this "C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" in the PATH. "Md. Shafiq Hossain" - is my user name

I installed globally with composer. Then added the PATH to Environment PATH variable i.e. added this "C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" in the PATH. "Md. Shafiq Hossain" is my user name.

But when i change the directory from command window to "C:\My Work2\src\Drupal\clientname\projectname" and type "Drush version", it gives me the following error:

'C:/Users/Md.' is not recognized as an internal or external command,operable program or batch file

Tried with the project wise. Installed correctly but in command prompt when type "Drush version", giving "Drush is not recognize as internal or external command" message.

If anyone can help me on this will be great!!

I googled lots, but could not solved the issue. I am using Php 7.2 with Apache

I am not sure which one is good idea, any one will work for me:

  1. Install Drush globally and then use locally ?
  2. Or Install Drush site / project wise and use locally?
  • I installed globally with composer. The add the PATH to Environment PATH variable i.e. added this "C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" in the PATH. "Md. Shafiq Hossain" - is my user name

But when i change the directory from command window to "C:\My Work2\src\Drupal\clientname\projectname" and type "Drush version", it gives me the following error:

'C:/Users/Md.' is not recognized as an internal or external command,operable program or batch file

Tried with the project wise. Installed correctly but in command prompt when type "Drush version", giving "Drush is not recognize as internal or external command" message.

If anyone can help me on this will be great!!

I googled lots, but could not solved the issue. I am using Php 7.2 with Apache.

I am not sure which one is good idea, any one will work for me:

  1. Install Drush globally and then use locally ?
  2. Or Install Drush site / project wise and use locally?

I installed globally with composer. Then added the PATH to Environment PATH variable i.e. added this "C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" in the PATH. "Md. Shafiq Hossain" is my user name.

But when i change the directory from command window to "C:\My Work2\src\Drupal\clientname\projectname" and type "Drush version", it gives me the following error:

'C:/Users/Md.' is not recognized as an internal or external command,operable program or batch file

Tried with the project wise. Installed correctly but in command prompt when type "Drush version", giving "Drush is not recognize as internal or external command" message.

If anyone can help me on this will be great!!

Source Link

How to install Drush 9 under windows 7 with Composer

I googled lots, but could not solved the issue. I am using Php 7.2 with Apache

I am not sure which one is good idea, any one will work for me:

  1. Install Drush globally and then use locally ?
  2. Or Install Drush site / project wise and use locally?
  • I installed globally with composer. The add the PATH to Environment PATH variable i.e. added this "C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\vendor\drush\drush" in the PATH. "Md. Shafiq Hossain" - is my user name

But when i change the directory from command window to "C:\My Work2\src\Drupal\clientname\projectname" and type "Drush version", it gives me the following error:

'C:/Users/Md.' is not recognized as an internal or external command,operable program or batch file

Tried with the project wise. Installed correctly but in command prompt when type "Drush version", giving "Drush is not recognize as internal or external command" message.

If anyone can help me on this will be great!!