how to update composer.json file after adding new extension to it?
Solved! Go to Solution.
You should install extension by composer like this:
Using the Composer name and version, add the extension to the require
section of the composer.json
file
composer require <extension-name>:<version> --no-update
For example:
composer require pixlee/magento2:1.0.1 --no-update
Update the project dependencies
composer update
bin/magento module:status <extension-name>
https://devdocs.magento.com/cloud/howtos/install-components.html
I am trying to add extension to magento 2 tried through back end I couldn't now i am trying through php command. it said to edit composer.josn and update it then run upgrade. still not able to get extension to be installed. Please help
Update the "name", "version", and "description" fields in the composer.json file as needed.
Updating the metadata in composer.json file is entirely superficial, not functional.
Apply updates.
composer update |
Thank you Manish Mittal
I am new to Magento...
where should I write this command:
composer require mageplaza/module-core
I tried everywhere
You should install extension by composer like this:
Using the Composer name and version, add the extension to the require
section of the composer.json
file
composer require <extension-name>:<version> --no-update
For example:
composer require pixlee/magento2:1.0.1 --no-update
Update the project dependencies
composer update
bin/magento module:status <extension-name>
https://devdocs.magento.com/cloud/howtos/install-components.html
I am trying to add extension to magento 2 tried through back end I couldn't now i am trying through php command. it said to edit composer.josn and update it then run upgrade. still not able to get extension to be installed. Please help
Update the "name", "version", and "description" fields in the composer.json file as needed.
Updating the metadata in composer.json file is entirely superficial, not functional.
Apply updates.
composer update |
how you update project dependency?
Project dependencies you can update by composer update.
Again I am sharing 2 articles to follow they have mentioned in clear way with different methods:
https://devdocs.magento.com/extensions/install/
https://www.mageplaza.com/install-magento-2-extension/
No worries,
You can run this command in your magento root folder.
replace here mageplaza/module-core with your module name.