When I tried to install Drupal Commerce using Composer, I got an error about State Machine. Below is the error I got when trying to update it. (Same error for installing / updating)

$ composer update drupal/commerce --with-dependencies
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)                          
  - Installing drupal/state_machine (dev-1.x 7680ceb)
    Cloning 7680ceb64915f4819037d42b11dd380fa4ea50da

                                                                               
  [RuntimeException]                                                           
  Failed to clone https://git.drupal.org/project/state_machine, git was not f  
  ound, check that it is installed and in your PATH env.                       
  sh: git: command not found  

What should I do to fix this problem?

Regards,

Comments

abx created an issue. See original summary.

bojanz’s picture

Category: Bug report » Support request
Status: Active » Fixed

"git was not found, check that it is installed and in your PATH env."
It's all in the error. You don't have Git on your system. Install it.

abx’s picture

Category: Support request » Bug report
Status: Fixed » Active

Ok, got it now.

Thanks for your help.

abx’s picture

Category: Bug report » Support request
Status: Active » Fixed
rszrama’s picture

Status: Fixed » Closed (fixed)