Score:-2

Drush command is not working

cn flag

I have installed Drush through composer and I have installed Drush 8, but every time I type "drush" in cmd, it shows this output. using win 11 with wamp PHP 8.1

The filename, directory name, or volume label syntax is incorrect.

leymannx avatar
ne flag
Welcome to Drupal Answers! Unfortunately that's not enough information to give you an answer for. Please edit your post and make it [a good question](https://drupal.stackexchange.com/help/how-to-ask). Start with including a question at all.
leymannx avatar
ne flag
Consider switching to DDEV instead of clumsy WAMP. Takes some time to get used to but in the end it will increase your productivity by the factor of 100. And you don't have to worry about things like this.
taggartJ avatar
cn flag
https://docs.drush.org/en/7.x/install/ perhaps have another go at this
Spectkiller avatar
cn flag
@leymannx i am really sorry for my incomplete question and I will try to switch to ddev if possible. thanks a lot
Score:1
us flag

Drush install with composer is located in ./vendor/bin/drush

You need to

  • run ./vendor/bin/drush
  • add ./vendor/bin to your path


    +1 for DDEV. It made development much easier for me.

Update: deleted old comment and added again with proper formating

Spectkiller avatar
cn flag
thank for your response. i am just a noob who has just started learning stuff. can you please elaborate me how to do those 2 step you mentioned. i'd be grateful
Spectkiller avatar
cn flag
hey i managed to add the path in system variable but when I run the command, it show >The system cannot find the path specified.
tyler36 avatar
us flag
You need to restart windows for path commands to activate.
tyler36 avatar
us flag
Sorry, my answer should be either - run `./vendor/bin/drush` - or add `./vendor/bin` to your path
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.