D:\WWW\dance>composer require topthink/think-captcha 1.*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Installing topthink/think-captcha (v1.0.7): Cloning 0c55455df2
[RuntimeException]
Failed to clone https://github.com/top-think/think-captcha.git, git was not found, check that it is installed and i
n your PATH env.
'git' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
https://jingyan.baidu.com/article/0a52e3f4e40ba2bf63ed726d.html
你个git没有全局安装