Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.7k views
in Technique[技术] by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...