How to install a specific version of package using Composer?

前端 未结 6 1119
野趣味
野趣味 2020-11-28 01:05

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 la

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 01:30

    Add double quotes to use caret operator in version number.

    composer require middlewares/whoops "^0.4"
    

提交回复
热议问题