drupal-check icon indicating copy to clipboard operation
drupal-check copied to clipboard

Support Request - How to install on Windows

Open PascCl opened this issue 6 years ago • 4 comments

Could I get some help on how to run this tool in a Windows environment?

Our projects are inside docker containers using lando/lando, not sure if that is relevant.

Would be awesome if it was possible to install this on Windows so it is project independent. I know how to install PHP and add things to PATH, but not entirely sure how to get started with this one.

PascCl avatar Apr 15 '19 11:04 PascCl

Hmm installation instructions in the readme work on lando/lando Might still be useful for other Windows users though

PascCl avatar Apr 15 '19 11:04 PascCl

I don't use Windows. I wouldn't have the faintest idea.

mglaman avatar Apr 26 '19 20:04 mglaman

I have my drupal 8 application on docker Lando windows 11. I Installed drupal-check using composer, I can see the project got downloaded in my vendor directory but when I run below command - drupal-check -d web/modules/custom/

my system does not recognise drupal-check , I get the following error

drupal-check : The term 'drupal-check' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • drupal-check -d web/modules/custom/
  •   + CategoryInfo          : ObjectNotFound: (drupal-check:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Do I need to do something related to path variable set on windows? Can I get some help here?

pinkygoyal22 avatar Mar 21 '22 18:03 pinkygoyal22

Being a composer package, this installs and works the same on Windows.

The only "trick" is perhaps an issue on paths.

Assuming you have a terminal open in a project and the project has drupal-check

Option 1. Be explict when calling drupal-check from project root

./vendor/bin/drupal-check

Option 2. Update your path to include ./vendor/bin. I preferer this method as its a set-and-forget method. Use your favorite search engine to check how to update your path for your specific version of windows.

tyler36 avatar Oct 05 '23 01:10 tyler36