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

后端 未结 5 964
礼貌的吻别
礼貌的吻别 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:35

    I found this answer here,

    1. Manually remove the package from composer.json.
    2. Manually delete vendor folder.
    3. Run composer install (from inside your project folder).

    Composer re-installs the packages listed in composer.json.

提交回复
热议问题