Drupalでモジュールを追加しようとしてComposerのコマンドを入力したが、次のエラーが発生しました。
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[RuntimeException]
git was not found in your PATH, skipping source download
![](https://minokamo.xyz/img/blog/2021/06/20210619.png)
GITがないのでインストールしたらエラーは解消されました。
sudo dnf install git