Composer报 “Do not run Composer as root/super user! ” 的解决方法增加普通用户 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql # 创建composer用户 useradd composer passwd 密码 切换到该用户 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql su composer 执行composer命令即可 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql # 如修改为阿里云的全量镜像站 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/