composer换成全量中国镜像了 为什么安装插件还是从阿里云下载的?

执行 composer config -l -g看到url如下

[repositories.packagist.org.url] https://packagist.phpcomposer.com

但是安装插件时还是从阿里云下载的 这是为什么?而且每次都是到这最后一步就卡住不动了 时间长了就提示killed了 这是怎么回事?清楚缓存也失败

ubuntu@VM-16-7-ubuntu:/aaa/quyin$ composer clearcache
Cache directory does not exist (cache-vcs-dir): 
Clearing cache (cache-repo-dir): /home/ubuntu/.cache/composer/repo
Clearing cache (cache-files-dir): /home/ubuntu/.cache/composer/files
Clearing cache (cache-dir): /home/ubuntu/.cache/composer

Reading /root/.composer/cache/repo/https---mirrors.aliyun.com-composer/provider-symfony$twig-bundle.json from cache
image

阅读 1.8k
1 个回答

当使用 composer install 时,如果存在 composer.lock 文件,将会从 composer.lock 文件中读取。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题