Exclude a package from updating in composer

前端 未结 6 1928
走了就别回头了
走了就别回头了 2021-02-07 10:22

Whenever I try to add a new package using composer like \"composer require packagename/package\" or use \"composer.phar update\", I am getting all the

6条回答
  •  长发绾君心
    2021-02-07 10:48

    From my experience, the best way to exclude 1 or some packages is to use --interactive in composer update.

    $ composer update --interactive
    

    When you do this you can select which package you want to update and skip the package that you don't want to update.

提交回复
热议问题