作者:张-苡_278 | 来源:互联网 | 2023-09-07 12:22
1.环境是win7全局安装的composer,之前一直是正常使用的。最近要在本地装一个新的项目,运行composer update 报错。报错代码如下:
2.这是现在项目下composer.json 最下面的代码
1 2 3 4 5 6
| "repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
} |
3.
1 2 3
| Content-length mismatch
https://packagist.phpcomposer.com could not be fully loaded was loaded from the local cache and may be out of date. |
4.现已尝试过的方法:
清除composer 缓存,更新composer 为最新版本,再次切换镜像为国内镜像,删除composer.lock,重新执行 composer install 还是同样的错误