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

Categories

执行 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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
2.8k views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...