执行 composer require 出现Warning: This development build of composer is over 60 days old.

问题

这里写图片描述

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Do not run Composer as root/super user! See https://getcomposer.org/root for details

上面提示叫你执行 running “/usr/local/bin/composer self-update”

[root@localhost ~]# /usr/local/bin/composer self-update
Updating to version 1.5.2 (stable channel).
Downloading (100%)         
Use composer self-update --rollback to return to version d9885d5b3bd1b28a6d8c679df848540e565ee818

你可能感兴趣的:(php)