企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 问题一: ``` Your configuration does not allow connections to http://packagist.phpcomposer.com/packages.json. See https://getcomposer.org/doc/06-config.md#secure-http for details. ``` 解决方法是设置一个本地或全局的composer配置: ``` composer config secure-http false ``` 全局设置: ``` composer config -g secure-http false ``` 意义是默认禁用`https`请求,就可以了 ## 问题二: 报错 ``` Do not run Composer as root/super user! See https://getcomposer.org/root for details ``` 遇到这种问题,多等一会儿,或者换个用户即可!