composer 报错 The "https://mirrors.aliyun.com/composer/p....json" file could not be downloaded (HTTP/1.1 404 Not Found)

[Composer\Downloader\TransportException]
The "https://mirrors.aliyun.com/composer/p/provider-2017%241979b6fa417248bfcbebc2c200d2cdcc64d79993f936c515d021639fbdacca8a.json" file could not be downloaded (HTTP/1.1 404 Not Found)

其实很简单。不要盯着红色的看。黄色的也看一下

Do not run Composer as root/super user! See https://getcomposer.org/root for details
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/

解决:

把composer升级到2就行

composer self-update --2 

 

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部