I have developed one extension and I have uploaded that in my GitHub private repository
now I have tried to install it using
composer require --dev bhaveshpp/Percentoffsale
but I got error
In InitCommand.php line 727: Could not find a matching version of package bhaveshpp/Percentoffsale. Check the package spelling, your version constraint and that the package is available in a stability w hich matches your minimum-stability (stable).
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-de pendencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
this is my composer.json file code
{
"name": "bhaveshpp/Percentoffsale",
"description": "A Magento 2 module that creates discount",
"type": "magento2-module",
"version": "0.1.0",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": ">=7.0.0",
"magento/framework": "~100.0.4"
},
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"Zarathemes\\Percentoffsale\\": ""
}
}
}
I have also try this solution
How to install an extension on a private Github using Composer?
{
"name": "bhaveshpp/Percentoffsale",
"description": "A Magento 2 module that creates discount",
"type": "magento2-module",
"version": "0.1.0",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": ">=7.0.0",
"magento/framework": "~100.0.4",
"bhaveshpp/Percentoffsale": "dev-master"
},
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"Zarathemes\\Percentoffsale\\": ""
}
},
"repositories": [
{
"type": "vcs",
"url": "g[email protected]:bhaveshpp/Percentoffsale.git"
}
]
}
But i have got the same error.
If any one have a solution then provide
Any help would be appreciated.
Thanks in advance..!