composer install => [Composer\Downloader\TransportException]

6 篇文章 0 订阅
5 篇文章 0 订阅

今天搭建服务时,在安装好composer后,项目下执行install时,报如下ERROR:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
You are using Composer 1 which is deprecated. You should upgrade to Composer 2, see https://blog.packagist.com/deprecating-composer-1-support/Loading composer repositories with package information
Warning from https://mirrors.aliyun.com/composer: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)                                                                                                                                                             [Composer\Downloader\TransportException]                                                                                                                                 The "https://mirrors.aliyun.com/composer/p/provider-2017%248d3cdf6c9c766724349873e7c49f6a2c26950ea1094916feaf8075a0f802f502.json" file could not be downloaded (HTTP/1.1 404 Not Found)                                                                                                        
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

网上搜索大部分都说用户权限的问题,这边也尝试了,最终还是不可以。最后的办法是采用切换,我之前的阿里的把他切换腾讯源即可。

 composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/

技术参看:https://www.yixzm.cn/blog/524012.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mr Xu Luka

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值