在用composer require topthink/think-image 包时报错了。
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.
这个错误,导致composer无法连接上阿里云的镜像源地址,因为阿里云镜像只支持composer 2以上版本。
所以,需要更新composer 的版本。
composer self-update
更新成功后,从新设置 镜像地址
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
继续按照包:
composer require topthink/think-image
成功!
在这里友情提醒各位伙伴,在使用composer时候,不要被他的错误吓到,把提示信息复制到百度进行搜索,一般都能解决。
好了,感谢您的阅读,希望对您有所帮助。