composer安装thinkphp6失败了,报错如下:
[root@localhost wwwroot]# composer create-project topthink/think=6.0.x-dev tp
Creating a "topthink/think=6.0.x-dev" project at "./tp"
Installing topthink/think (6.0.x-dev 956b07a5cf47927600a1177d679fe102c49d9790)
- Installing topthink/think (6.0.x-dev 956b07a): Cloning 956b07a5cf
Failed to download topthink/think from source: Failed to clone https://github.com/top-think/think.git, git was not found, check that it is installed and in your PATH env.
sh: git: command not found
Now trying to download from dist
[root@localhost wwwroot]# composer create-project topthink/think=6.0.x-dev tp
Creating a "topthink/think=6.0.x-dev" project at "./tp"
Installing topthink/think (6.0.x-dev 956b07a5cf47927600a1177d679fe102c49d9790)
- Installing topthink/think (6.0.x-dev 956b07a): Cloning 956b07a5cf
Failed to download topthink/think from source: Failed to clone https://github.com/top-think/think.git, git was not found, check that it is installed and in your PATH env.
sh: git: command not found
Now trying to download from dist
[RuntimeException]
The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: /usr/local/phpstudy/soft/php/php-7.3.8/etc/php.ini
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]