1. 程式人生 > >packagist.phpcomposer.com原因導致的報錯

packagist.phpcomposer.com原因導致的報錯

由於packagist更改導致的報錯。例如:

可以把composer.json中修改一下

"packagist": {
  "type": "composer",
  "url": "https://packagist.phpcomposer.com"
}

修改成

"packagist": {
  "type": "composer",
  "url": "https://packagist.laravel-china.org"
}