如何使用Composer安装特定版本的软件包? [英] How to install a specific version of package using Composer?
本文介绍了如何使用Composer安装特定版本的软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Composer安装软件包的特定版本.我尝试了composer install
和composer require
,但是他们正在安装软件包的最新版本.如果我想要旧版本该怎么办?
I am trying to install a specific version of a package using Composer. I tried composer install
and composer require
but they are installing the latest version of the package. What if I want an older version?
推荐答案
composer require vendor/package:version
例如:
composer require refinery29/test-util:0.10.2
这篇关于如何使用Composer安装特定版本的软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文