张奉天
2020-05-12 14:03
macdeMacBook-Pro:www mac$ composer global require laravel/installer Changed current directory to /Applications/MxSrvs/bin/composer Using version ^3.0 for laravel/installer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 16 installs, 0 updates, 0 removals - Installing symfony/process (v5.0.8): Loading from cache - Installing symfony/polyfill-ctype (v1.16.0): Loading from cache - Installing symfony/filesystem (v5.0.8): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download symfony/filesystem from dist: The "https://api.github.com/repos/symfony/filesystem/zipball/7cd0dafc4353a0f62e307df90b48466379c8cc91" file could not be downloaded: failed to open stream: Connection refused Now trying to download from source - Installing symfony/filesystem (v5.0.8): Cloning 7cd0dafc43 from cache - Installing psr/container (1.0.0): Loading from cache - Installing symfony/service-contracts (v2.0.1): Loading from cache - Installing symfony/polyfill-php73 (v1.16.0): Loading from cache - Installing symfony/polyfill-mbstring (v1.16.0): Loading from cache - Installing symfony/console (v5.0.8): Loading from cache - Installing ralouphie/getallheaders (3.0.3): Loading from cache - Installing psr/http-message (1.0.1): Loading from cache - Installing guzzlehttp/psr7 (1.6.1): Loading from cache - Installing guzzlehttp/promises (v1.3.1): Loading from cache - Installing symfony/polyfill-php72 (v1.16.0): Loading from cache - Installing symfony/polyfill-intl-idn (v1.16.0): Loading from cache - Installing guzzlehttp/guzzle (6.5.3): Loading from cache - Installing laravel/installer (v3.0.1): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download laravel/installer from dist: The "https://api.github.com/repos/laravel/installer/zipball/a00b073173d133920e62623c4c189d055b06ee54" file could not be downloaded: failed to open stream: Connection refused Now trying to download from source - Installing laravel/installer (v3.0.1): Cloning a00b073173 from cache symfony/service-contracts suggests installing symfony/service-implementation symfony/console suggests installing symfony/event-dispatcher symfony/console suggests installing symfony/lock symfony/console suggests installing psr/log (For using the console logger) guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses) symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)guzzlehttp/guzzle suggests installing psr/log (Required for using the Log middleware) Writing lock file Generating autoload files 8 packages you are using are looking for funding. Use the `composer fund` command to find out more!
安装laravel 安装器的时候报错了 怎么办???
建议在终端安装完composer后,直接安装laraverl安装包 https://xueyuanjun.com/post/2
轻松学会Laravel-高级篇
35277 学习 · 138 问题
相似问题