composer 安装tp6报错

浏览:2387 发布日期:2020/05/28
5.0.0 - 普通 - 未处理
安装命令为文档中的:composer create-project topthink/think tp6

lpdeMacBook-Pro:tp liupan$ composer create-project topthink/think tp6
#!/usr/bin/env php
#!/usr/bin/env php
Installing topthink/think (v6.0.2)
- Installing topthink/think (v6.0.2): Loading from cache
Created project in tp6
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 14 installs, 0 updates, 0 removals
- Installing psr/container (1.0.0): Loading from cache
- Installing topthink/think-helper (v3.1.4): Loading from cache
- Installing psr/log (1.1.3): Loading from cache
- Installing psr/simple-cache (1.0.1): Loading from cache
- Installing topthink/think-orm (v2.0.32): Loading from cache
- Installing symfony/polyfill-php72 (v1.17.0): Loading from cache
- Installing symfony/polyfill-mbstring (v1.17.0): Loading from cache
- Installing symfony/var-dumper (v4.4.8): Loading from cache
- Installing opis/closure (3.5.3): Loading from cache
- Installing psr/cache (1.0.1): Loading from cache
- Installing league/flysystem (1.0.69): Loading from cache
- Installing league/flysystem-cached-adapter (1.0.9): Loading from cache
- Installing topthink/framework (v6.0.2): Loading from cache
- Installing topthink/think-trace (v1.3): Loading from cache
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
symfony/var-dumper suggests installing symfony/console (To use the ServerDumpCommand and/or the bin/var-dump-server script)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem-cached-adapter suggests installing ext-phpredis (Pure C implemented extension for PHP)
Writing lock file
Generating autoload files
> @php think service:discover

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /Users/lp/www/tp/tp6/think on line 4

script @php think service:discover handling the post-autoload-dump event returned with error code 255
评论(
后面还有条评论,点击查看>>