【原创】解决composer授权问题:composer install 时需要输入账号密码

blogdaren 2018-10-19 抢沙发 196人次

问题背景:

执行 composer install 命令,报告:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
                                             
    Authentication required (packagist.phpcomposer.com):
      Username: 

解决方案:

直接更换社区源:


composer config -g repo.packagist composer https://packagist.laravel-china.org


#composer授权#

版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】解决composer授权问题:composer install 时需要输入账号密码

发表评论:

您的昵称:
电子邮件:
个人主页: