Composer で lavarel をグローバルにインストールするときの問題

不言
リリース: 2023-03-01 07:12:02
オリジナル
5027 人が閲覧しました

システムはcentos6.5です

[root@memda www]# composer global require "laravel/installer=~1.1"
Changed current directory to /root/.composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v3.1.3)
    Downloading: Failed       
    Downloading: Failed       
    Downloading: Failed       
    Failed to download symfony/process from dist: The "https://api.github.com/repos/symfony/process/zipball/04c2dfaae4ec56a5c677b0c69fac34637d815758" file could not be downloaded: failed to open stream: No route to host
    Now trying to download from source
  - Installing symfony/process (v3.1.3)
    Cloning 04c2dfaae4ec56a5c677b0c69fac34637d815758

Installation failed, deleting ./composer.json.
The disk hosting /root/.composer is full, this may be the cause of the following exception

                                                                                                                                         
  [RuntimeException]                                                                                                                     
  Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.                                             
  - https://github.com/symfony/process.git                                                                                               
    error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/symfony/process.git/info/refs  
                                                                                                                                         
    fatal: HTTP request failed                                                                                                           
  - git@github.com:symfony/process.git                                                                                                   
    ssh: connect to host github.com port 22: No route to host                                                                            
    fatal: The remote end hung up unexpectedly                                                                                           
                                                                                                                                         

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] []...
ログイン後にコピー
ログイン後にコピー

symfony/プロセスのダウンロード失敗処理が必ず発生し、原因が全く分からず泣いて泣いて泣いて…

返信内容:

システムはcentos6.5

[root@memda www]# composer global require "laravel/installer=~1.1"
Changed current directory to /root/.composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v3.1.3)
    Downloading: Failed       
    Downloading: Failed       
    Downloading: Failed       
    Failed to download symfony/process from dist: The "https://api.github.com/repos/symfony/process/zipball/04c2dfaae4ec56a5c677b0c69fac34637d815758" file could not be downloaded: failed to open stream: No route to host
    Now trying to download from source
  - Installing symfony/process (v3.1.3)
    Cloning 04c2dfaae4ec56a5c677b0c69fac34637d815758

Installation failed, deleting ./composer.json.
The disk hosting /root/.composer is full, this may be the cause of the following exception

                                                                                                                                         
  [RuntimeException]                                                                                                                     
  Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.                                             
  - https://github.com/symfony/process.git                                                                                               
    error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/symfony/process.git/info/refs  
                                                                                                                                         
    fatal: HTTP request failed                                                                                                           
  - git@github.com:symfony/process.git                                                                                                   
    ssh: connect to host github.com port 22: No route to host                                                                            
    fatal: The remote end hung up unexpectedly                                                                                           
                                                                                                                                         

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] []...
ログイン後にコピー
ログイン後にコピー

symfony/プロセスのダウンロード失敗プロセスが必ず発生し、原因が全く見つからず泣いて泣いて泣いて…

自分で解決、コンポーザーのグローバル設定の変更を忘れる、ミラーはまだ国内ミラーを使用する必要があります、
composer config -g repo.packagist Composer https://packagist.phpcomposer...
なんと愚かなことでしょう!

関連ラベル:
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
最新の問題
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート