0

I want to set up my composer.json then able to update the to newest version lately

For example:

module has composer.json

{
 "name": "vendor/module",
 "description": "description",
 "type": "magento2-module",
 "version": "1.0.0",
}

after a while I updated the packagist, here's the new composer.json

{
 "name": "vendor/module",
 "description": "description",
 "type": "magento2-module",
 "version": "1.0.1",
}

But, problem is, when I'm running this command

composer update vendor/module

The version 1.0.1 does not install, not sure why

Note: I checked the composer.lock and also in vendor/module to make sure it was installed, but not, composer show -l also revealed that 1.0.1 is available

Thanks in advance.

asked Apr 22, 2022 at 6:58

1 Answer 1

0

I might be wrong but I think composer update will just update your composer.json. If you want to actually make the update effective you need to run composer install.

answered Apr 22, 2022 at 12:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.