cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I remove abandoned packages with composer in Magento 2.4.7-P3?

Why can't I remove abandoned packages with composer in Magento 2.4.7-P3?

When I run the command "composer update" in Magento 2.4.7-P3 the following packages seems to be abandoned:

 

Package laminas/laminas-config is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-crypt is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-file is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-json is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-loader is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-mail is abandoned, you should avoid using it. Use symfony/mailer instead.
Package laminas/laminas-math is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-mime is abandoned, you should avoid using it. Use symfony/mime instead.
Package laminas/laminas-oauth is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-text is abandoned, you should avoid using it. No replacement was suggested.
Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.

 

When I tro to remove them with the following command:

 

composer remove laminas/laminas-config

 

This is what's shown on the screen:

 

laminas/laminas-config is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update laminas/laminas-config
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove

What's all this about?
Thanks,

1 REPLY 1

Re: Why can't I remove abandoned packages with composer in Magento 2.4.7-P3?

Hello @Alldo Group 

 

The message you're seeing indicates that laminas/laminas-config is not listed as a direct dependency in your composer.json

 

Check if It’s a Transitive Dependency

 

You can check if it's required by another package by running:

composer show laminas/laminas-config 

 

Remove the Dependent Package

If the package that requires laminas/laminas-config is something you no longer need, you can remove that package first. For example, if laminas/laminas-config is a dependency of a package such as laminas/laminas-xxx, you can remove the package that depends on it by running:

composer remove laminas/laminas-xxx

 

After removing the dependent package, you can try removing laminas/laminas-config again.

composer remove laminas/laminas-config

 

​Hope it helps ! 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

 

 

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9