美文网首页软件开发历劫之路
composer使用国内镜像还是很慢?

composer使用国内镜像还是很慢?

作者: 鱼之乐_子焉知 | 来源:发表于2020-08-26 11:25 被阅读0次

composer 下载包时,尽管已经更换为国内镜像了https://packagist.phpcomposer.com,但是还是会报错

Content-Length mismatch, received 32372 bytes out of the expected 480707 
https://packagist.phpcomposer.com could not be fully loaded, package information was loaded from the local cache and may be out of date

还是会很慢!!!!

解决办法

1、清除缓存

composer clear-cache

2、如果还是慢,更换为阿里镜像
地址:https://mirrors.aliyun.com/composer/
全局配置

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

取消配置

composer config -g --unset repos.packagist

当前项目配置

composer config repo.packagist composer https://mirrors.aliyun.com/composer/

取消配置

composer config --unset repos.packagist

对你有用吗?有用就点个赞呗!!!!!!!

相关文章

  • composer使用国内镜像还是很慢?

    composer 下载包时,尽管已经更换为国内镜像了https://packagist.phpcomposer.c...

  • ThinkPHP5.1构建Restful风格API

    下载安装composer composer使用国内镜像 通过composer安装ThinkPHP5.1 通过com...

  • 学习笔记

    composer 切换国内镜像: 使用方法: packagist composer require 作者名/扩展包...

  • composer

    1:使用国内镜像 1: composer config -g repo.packagist composer ht...

  • 【Composer】国内镜像使用

    1. 全局配置 2. 仅在项目中使用 取消镜像 使用国内镜像安装laravel 示例 如果指定国内镜像,下载会很慢...

  • Composer安装Laravl遇到的坑

    1.composer 版本太低~~~经常提示没有composer.json文件2.composer使用国内镜像 c...

  • 初识laravel

    1、composer中国镜像 2、全局使用composer中国镜像 3、使用composer安装laravel5....

  • Composer 部署laravel框架

    使用composer方式部署laravel项目 第一步:切换镜像为国内镜像镜像官网:https://pkg.php...

  • composer国内镜像

    安装 php composer 国内镜像列表 镜像名地址赞助商更新频率备注阿里云 Composer 镜像https...

  • composer 国内镜像

    composer config -g repo.packagist composer https://mirror...

网友评论

    本文标题:composer使用国内镜像还是很慢?

    本文链接:https://www.haomeiwen.com/subject/hlexsktx.html