• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

composer全局安装lavarel时的问题

php 搞代码 4年前 (2022-01-22) 20次浏览 已收录 0个评论
文章目录[隐藏]

系统是centos6.5

[root@memda www]# composer global require "laravel/installer=~1.1"Changed current directory to /root/.composer./composer.json has been createdLoading composer repositories with package informationUpdating 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 04c2dfaae4ec56a5c677b0c69fac34637d815758Installation 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                                                                                                             - [email protected]:symfony/process.git                                                                                                       ssh: connect to host github.com port 22: No route to host                                                                                fatal: The remote end hung up unexpectedly                                                                                                                                                                   <em style="color:transparent">本文来源gao.dai.ma.com搞@代*码#网</em><a>搞代gaodaima码</a>                                                                 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/process下载失败的过程,而且完全查不到原因呀,哭哭哭哭……

回复内容:

系统是centos6.5

[root@memda www]# composer global require "laravel/installer=~1.1"Changed current directory to /root/.composer./composer.json has been createdLoading composer repositories with package informationUpdating 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 04c2dfaae4ec56a5c677b0c69fac34637d815758Installation 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                                                                                                             - [email protected]: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/process下载失败的过程,而且完全查不到原因呀,哭哭哭哭……

自己解决,忘记修改composer的全局配置了,镜像还是要使用国内的镜像,
composer config -g repo.packagist composer https://packagist.phpcomposer&#8230;
好蠢!


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:composer全局安装lavarel时的问题
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址