运行composer出现do not run Composer as root/super user!
Posted zouke1220
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了运行composer出现do not run Composer as root/super user!相关的知识,希望对你有一定的参考价值。
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer -V
意思是不要在root超级用户下执行,所以就更换一个用户吧,如下,就不会报这个提示了
useradd zouke
passwd zouke
国内镜像http://packagist.phpcomposer.com不能进行访问,国外镜像访问速度也很慢
使用 Composer 镜像加速
composer config -g repo.packagist composer https://packagist.laravel-china.org
或
composer config -g repo.packagist composer https://packagist.phpcomposer.com
参考文章:
linux下composer小记:Do not run Composer as root/super user!
国内镜像http://packagist.phpcomposer.com不能进行访问
以上是关于运行composer出现do not run Composer as root/super user!的主要内容,如果未能解决你的问题,请参考以下文章
解决Composer不允许使用root用户执行 - Do not run Composer as root/super user!
安装软件出现 could not access vbscript run time for custom action 错误
composer出现问题: Could not open input file: composer.phar