ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by  cincarnato 7 months ago.

  • Creator
    Topic
  • #32690

    cincarnato
    Participant

    Version: 2.0.1

    #composer update
    Loading composer repositories with package information
    Updating dependencies (including require-dev)

    [UnexpectedValueException]
    Could not parse version constraint >=~2: Invalid version string “~2”

    ———————————————————————————–
    Same on require:

    # composer require sy-metal/oro-crm-sms-sondeos-bundle –prefer-dist –update-no-dev
    Using version dev-master for sy-metal/oro-crm-sms-sondeos-bundle
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies

    Installation failed, reverting ./composer.json to its original content.

    [UnexpectedValueException]
    Could not parse version constraint >=~2: Invalid version string “~2”

    ———————————————————————————–
    Please Help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #32693

    cincarnato
    Participant

    with verbose -vvv

    Writing /root/.composer/cache/repo/https—bower.herokuapp.com-packages/fullcalendar-0a77404e566e00123b769d27753b1e6fbfe349c8-package.json into cache
    Adding VCS repository bower-asset/fullcalendar
    Downloading https://api.github.com/repos/fullcalendar/fullcalendar
    Downloading https://api.github.com/repos/fullcalendar/fullcalendar/contents/bower.json?ref=master
    Downloading https://api.github.com/repos/fullcalendar/fullcalendar/commits/master
    Downloading https://api.github.com/repos/fullcalendar/fullcalendar/tags?per_page=100
    Downloading https://api.github.com/repos/fullcalendar/fullcalendar/git/refs/heads?per_page=100

    Installation failed, reverting ./composer.json to its original content.

    [UnexpectedValueException]
    Could not parse version constraint >=~2: Invalid version string “~2”

    Exception trace:
    () at phar:///usr/local/bin/composer/vendor/composer/semver/src/VersionParser.php:485
    Composer\Semver\VersionParser->parseConstraint() at phar:///usr/local/bin/composer/vendor/composer/semver/src/VersionParser.php:244
    Composer\Semver\VersionParser->parseConstraints() at phar:///usr/local/bin/composer/src/Composer/Package/Version/VersionParser.php:27
    Composer\Package\Version\VersionParser->parseConstraints() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:241
    Composer\Package\Loader\ArrayLoader->parseLinks() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:125
    Composer\Package\Loader\ArrayLoader->load() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:174
    Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->preInitBranchPackage() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:138
    Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initBranches() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:45
    Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initialize() at phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:185
    Composer\Repository\ArrayRepository->getPackages() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:104
    Composer\DependencyResolver\Pool->addRepository() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.php:61
    Fxp\Composer\AssetPlugin\Repository\Util::addRepositoryInstance() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.php:40
    Fxp\Composer\AssetPlugin\Repository\Util::addRepository() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php:140
    Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:204
    Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:193
    Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:168
    Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:322
    Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:214
    Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:472
    Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:223
    Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:174
    Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:257
    Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:850
    Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:193
    Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:227
    Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:124
    Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:100
    Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:54
    require() at /usr/local/bin/composer:24

    #32702
    adriwan_kenoby
    adriwan_kenoby
    Participant

    The problem come from the fxp/composer-asset-plugin 1.2

    composer global require fxp/composer-asset-plugin:~1.3@dev should resolve you’re problem.

    https://github.com/fxpio/composer-asset-plugin/issues/270#issuecomment-280259001

    #32707

    cincarnato
    Participant

    resolved

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.