Do not run Composer as root/super user! See https://getcomposer.org/root for details

臭大佬 2020-04-15 10:36:33 3273
php 
简介 Do not run Composer as root/super user! See https://getcomposer.org/root for details

问题

Do not run Composer as root/super user! See https://getcomposer.org/root for details

意思是说:不要以root /超级用户身份运行Composer!
有关详细信息,请参见https://getcomposer.org/root

解决

既然超级管理员不行,那我们创建一个别的用户

useradd wjf
passwd wjf

 su - wjf

切换为root

su root