简体   繁体   中英

How to bring project into compliance with composer.json?

That must be what composer install is supposed to do. But it doesn't remove no longer needed packages. Well, I can remove packages with composer remove PACKAGE instead of editing composer.json by hand, but that still leaves dependencies in composer.lock and vendor dir.

If composer remove PACKAGE does not work, probably the package that you don't require is required by another package.

if you want to make sure, delete vendor folder and do a composer update (beware of the vendor/package: * that you have on your composer.json )

If the vendor still have that package, it's because it's needed by another.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM