Keywords: Magento - Virtual Machines - Technical issue - Other
bnsupport ID: af94e04a-36f3-1273-3a18-58620d4e1453
i am trying to create my own extension and theses are my steps:
1- cd /opt/binami/apps/magento/htdocs/vendor/magento
2- create folder (vendor name) then cd inside it
3- create folder (module name)
4- cd inside module ,create etc folder and create module.xml inside it
5- cd vendor folder and create registeration.php
6- cd /opt/bitanmi/apps/magento/htdocs/
7- composer require vendorname/modulename
then get this error:
Could not find a matching version of package Deltasoft_PageBuilderExtensionNewModule. Check the package spelling, your version constraint and that the package is a
vailable in a stability which matches your minimum-stability (stable).
You are actually doing two wrong process :
1. Creating module :
You should never create a module inside vendor/magento.
you should place your module inside Docroot/app/code/
so your module path will look like this : Docroot/app/code/Vendor/Module
Reference : https://devdocs.magento.com/videos/fundamentals/create-a-new-module/
2. Module install via composer :
when you install any module, it doesn't install from your project folder, it download module from Packagist , so you have to push your module there so it can be globally downloadable,
Please find attached reference to how to upload a module to https://packagist.org :
Hope it's clear now ! Good luck !
the generated code of running bnsupport:
i use magento certified by bitnami image then no app/code folder
the core code of magento existing in vendor/Magento
Can you share what you actually want to do, if you want to install a module via composer, then you don't need to create module inside vendor/magento.
composer will create it for you, you just need to simply run the command.
Please explain what you actually want to do.
I want to create my own extension or module then install/test it on Magento Certified by bitnami image on azure machine
Then also you should create your module it in app/code with the above reference and manage it through composer.