Exclude a package from updating in composer

前端 未结 6 1924
走了就别回头了
走了就别回头了 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 11:01

    1. run this command and see what is your package version:

      composer show -i
      
    2. go to composer.json and edit which package you want never change by composer update and write version correctly for that :

      "jacopo/laravel-authentication-acl": "1.3.*", 
      

      change to :

      "jacopo/laravel-authentication-acl": "1.3.11",
      

    Done! now if you run composer update this package not update.

提交回复
热议问题