- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to update composer.json file after adding new extension to it?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Manish Mittal
I am new to Magento...
where should I write this command:
composer require mageplaza/module-core
I tried everywhere
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: installing extension t magento 2
how you update project dependency?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: installing extension t magento 2
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/
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: installing extension t magento 2
No worries,
You can run this command in your magento root folder.
replace here mageplaza/module-core with your module name.
https://www.manishmittal.com/