cancel
Showing results for 
Search instead for 
Did you mean: 

I can't install my own extension (local) in Magento Certified By Bitnami

I can't install my own extension (local) in Magento Certified By Bitnami

Keywords: Magento - Virtual Machines - Technical issue - Other
bnsupport ID: af94e04a-36f3-1273-3a18-58620d4e1453
Description:
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:
[InvalidArgumentException]
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).

6 REPLIES 6

Re: I can't install my own extension (local) in Magento Certified By Bitnami

Hello @amiraredad8657 

 

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 :

 

https://magento.stackexchange.com/questions/319337/magento-2-how-to-make-users-to-install-the-plugin...

 

Hope it's clear now ! Good luck ! Smiley Happy

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: I can't install my own extension (local) in Magento Certified By Bitnami

@robinbenz23d5f 

the generated code of running bnsupport:

09a5ab4b-f320-cbc8-67c5-cb56fb66f48c

Re: I can't install my own extension (local) in Magento Certified By Bitnami

i use magento certified by bitnami image then no app/code folder 

the core code of magento existing in vendor/Magento

Re: I can't install my own extension (local) in Magento Certified By Bitnami

@amiraredad8657 

 

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.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: I can't install my own extension (local) in Magento Certified By Bitnami

I want to create my own extension or module then install/test it on Magento Certified by bitnami image on azure machine  

Re: I can't install my own extension (local) in Magento Certified By Bitnami

@amiraredad8657 

 

Then also you should create your module it in app/code with the above reference and manage it through composer.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy