新电脑安装composer
,但是报错了!
[Composer\Downloader\TransportException]
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 config -g repositories.packagist composer http://packagist.phpcomposer.com
执行这个是因为composer
访问国外的很慢!
报错是因为现在国内的加了https
所以修改为 > composer config -g repositories.packagist composer https://packagist.phpcomposer.com
OK!
本站(PHP --> Golang)已重构,代码开源
当你能力不能满足你的野心的时候,你就该沉下心来学习