解决composer提示版本太旧You are using an outdated version of Composer. Composer 2.0 is now available and you

Warning from https://mirrors.aliyun.com/composer: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2

Updating dependencies (including require-dev)

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://D:/ProgramFiles/composer/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
在这里插入图片描述
最近用laravel发现,在安装扩展是一直报composer版本错误。

原因:从报错信息可以看出是composer版本太旧的。

解决办法:升级本地的composer版本

composer self-update

猜你喜欢

转载自blog.csdn.net/cheers_bin/article/details/112616774