Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
bojanz CreditAttribution: bojanz at Centarro commented"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.
Comment #3
abx CreditAttribution: abx commentedOk, got it now.
Thanks for your help.
Comment #4
abx CreditAttribution: abx commentedComment #5
rszrama CreditAttribution: rszrama at Centarro commented