Home >Development Tools >composer >How to remove dependencies in Composer

How to remove dependencies in Composer

藏色散人
藏色散人forward
2019-12-20 14:17:546256browse

The following tutorial column of Composer will introduce to you how to remove dependencies in Composer. I hope it will be helpful to friends in need!

How to remove dependencies in Composer

When I used composer to install dependencies, I installed the wrong package. I couldn’t find the command to remove dependencies on its Chinese website, so I had to use the official website:

To get help information from the command line, please run the composer or composer list command,

Then combine with the --help command to get more help information.

A lot of command parameters appear, scan them, and it’s just right. Before require, there is remove, which is the removal command. The example is as follows:

composer remove twbs/bootstrap

But this only deletes the dependency, not It will be loaded automatically, but its dependent packages are still in the vendor folder and can be deleted manually.

For more composer-related technical articles, please visit the composer column: https://www.php.cn/tool/composer/

The above is the detailed content of How to remove dependencies in Composer. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete