Composer报错:Do not run Composer as root/super user!

Qbit 2019-07-29 PM 1136℃

Composer报 “Do not run Composer as root/super user! ” 的解决方法

  • 增加普通用户
# 创建composer用户
useradd composer
passwd 密码
  • 切换到该用户
su composer
  • 执行composer命令即可
# 如修改为阿里云的全量镜像站
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
标签: composer php 报错

非特殊说明,本博所有文章均为博主原创。