composer安装thinkphp6失败了

Mr.Right

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>]

问题比较着急?请联系QQ:760483
  • Peter·Python
  • Peter·Python    2020-11-04 18:22:341楼

    docker里安装unzip,使用webshell,root权限配置好composer,就没问题了

    +添加回复

  • 回复