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

How to remove dependencies in Composer

藏色散人
Release: 2019-12-20 14:17:54
forward
6276 people have browsed it

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
Copy after login

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!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer failed to install TP51
From 1970-01-01 08:00:00
0
0
0
PHP study installation composer cannot be used
From 1970-01-01 08:00:00
0
0
0
php - Error using composer
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template