宝塔安装composer可能会报错
Warning: putenv() has been disabled for security…
原因是PHP禁止了危险函数,前往php将他删除(putenv)
删除后执行
composer config -g repo.packagist composer https://packagist.phpcomposer.com
就可以了
评论 (0)