Question

When Updating Module Via Composer it will not Update Module on my localhostx?

When I put this line. I get this error on my local host.

composer require "route/route-m2"

Could not find a matching version of package route/route-m2. Check the pack age spelling, your version constraint and that the package is available in a stability which matches your minimum-stability

If I try COMPOSER_MEMORY_LIMIT=6G composer update 'route/route-m2' I get

Nothing to install or update

Am I putting in the wrong syntax?? I am so confused.

Was it helpful?

Solution

As discussed in the comments, here are the things which can be tried in this scenario:

  • Clear composer cache and retry using composer clear-cache.
  • Try composer require without quotes composer require route/route-m2.
  • Delete composer.lock , delete already installed module from vendor folder, clear cache using composer clear-cache and re-install module via composer using composer require route/route-m2.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top