Composer: remove a package, clean up dependencies, don't update other packages

后端 未结 5 928
礼貌的吻别
礼貌的吻别 2021-01-30 19:46

The situation

Let\'s say I have a project with two packages installed by Composer:

php composer.phar require \'squizlabs/php_codesniffer:~2.0\' \'phpmd         


        
5条回答
  •  时光说笑
    2021-01-30 20:44

    To remove package from .json and .lock files you have to remove package as follows:

    composer remove package-name
    

提交回复
热议问题