emizentech / magento2-price-slider

Price Slider for Category Page:Magento2
20 stars 33 forks source link

Problem sit master composer.json #19

Open Giuliano69 opened 4 years ago

Giuliano69 commented 4 years ago

Hi, thaks for your extenstion. I was trying to install, but failed due to an errror in master composer.json.

It fails at step 4) claiming [Composer\Repository\InvalidRepositoryException]
No valid composer.json was found in any branch or tag of https://github.com/emizentech/magento2-price-slider/, could not load a package from it.

I enclose verbose install:

  1. modified composer.json in magentoRootDir to update "minimum-stability": "dev" "version": "2.3.5-p1", "minimum-stability": "dev",

  2. magento_user@firenze:/var/www/penstore$ composer clear-cache

Cache directory does not exist (cache-vcs-dir): Clearing cache (cache-repo-dir): /home/magento_user/.cache/composer/repo Clearing cache (cache-files-dir): /home/magento_user/.cache/composer/files Clearing cache (cache-dir): /home/magento_user/.cache/composer All caches cleared.

  1. magento_user@firenze:/var/www/penstore$ composer config repositories.emizentech-magento2-price-slider vcs https://github.com/emizentech/magento2-price-slider/ -vvv

Reading ./composer.json Loading config file /home/magento_user/.config/composer/auth.json Loading config file ./composer.json Checked CA file /etc/ssl/certs/ca-certificates.crt: valid Failed to initialize global composer: Composer could not find the config file: /home/magento_user/.config/composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Reading /var/www/penstore/vendor/composer/installed.json Loading plugin MagentoHackathon\Composer\Magento\Plugin activate magento plugin Loading plugin Magento\InventoryComposerInstaller\Plugin Loading plugin Laminas\DependencyPlugin\DependencyRewriterPlugin Activating Laminas\DependencyPlugin\DependencyRewriterPlugin Loading plugin Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin Running 1.10.1 (2020-03-13 20:34:27) with PHP 7.2.24-0ubuntu0.18.04.4 on Linux / 4.15.0-99-generic Loading config file /home/magento_user/.config/composer/auth.json Reading ./composer.json

  1. magento_user@firenze:/var/www/penstore$ composer require magento/magento-composer-installer -vvv `Reading ./composer.json Loading config file /home/magento_user/.config/composer/auth.json Loading config file ./composer.json Checked CA file /etc/ssl/certs/ca-certificates.crt: valid Failed to initialize global composer: Composer could not find the config file: /home/magento_user/.config/composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Reading /var/www/penstore/vendor/composer/installed.json Loading plugin MagentoHackathon\Composer\Magento\Plugin activate magento plugin Loading plugin Magento\InventoryComposerInstaller\Plugin Loading plugin Laminas\DependencyPlugin\DependencyRewriterPlugin Activating Laminas\DependencyPlugin\DependencyRewriterPlugin Loading plugin Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin Running 1.10.1 (2020-03-13 20:34:27) with PHP 7.2.24-0ubuntu0.18.04.4 on Linux / 4.15.0-99-generic Using HTTP basic authentication with username "9bfeb22a94d7bfbffb65577c2415530d" Downloading https://repo.magento.com/packages.json Writing /home/magento_user/.cache/composer/repo/https---repo.magento.com/packages.json into cache Using GitHub token authentication Downloading https://api.github.com/repos/emizentech/magento2-price-slider Downloading https://api.github.com/repos/emizentech/magento2-price-slider/contents/composer.json?ref=master Downloading https://api.github.com/repos/emizentech/magento2-price-slider/commits/master Downloading https://api.github.com/repos/emizentech/magento2-price-slider/tags?per_page=100 Downloading https://api.github.com/repos/emizentech/magento2-price-slider/git/refs/heads?per_page=100 Downloading https://api.github.com/repos/emizentech/magento2-price-slider/contents/.github/FUNDING.yml Downloading https://api.github.com/repos/emizentech/.github/contents/FUNDING.yml Reading composer.json of emizentech/priceslider (master) Downloading https://api.github.com/repos/emizentech/magento2-price-slider/contents/composer.json?ref=c313c78f5d368a9abd107be75b1b631748b061b8 Downloading https://api.github.com/repos/emizentech/magento2-price-slider/commits/c313c78f5d368a9abd107be75b1b631748b061b8 Writing /home/magento_user/.cache/composer/repo/github.com/emizentech/magento2-price-slider/c313c78f5d368a9abd107be75b1b631748b061b8 into cache Importing branch master (dev-master) Skipped branch master, Could not parse version constraint : Invalid version string ""

    [Composer\Repository\InvalidRepositoryException]
    No valid composer.json was found in any branch or tag of https://github.com/emizentech/magento2-price-slider/, could not load a package from it.

Exception trace: () at phar:///usr/local/bin/composer/src/Composer/Repository/VcsRepository.php:344 Composer\Repository\VcsRepository->initialize() at phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:195 Composer\Repository\ArrayRepository->getPackages() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:104 Composer\DependencyResolver\Pool->addRepository() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:697 Composer\Command\InitCommand->getPool() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:737 Composer\Command\InitCommand->findBestVersionAndNameForPackage() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:416 Composer\Command\InitCommand->determineRequirements() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:163 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:281 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:113 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:61 require() at /usr/local/bin/composer:24 `