update-helper: Could not parse version constraint ^2.0.x-dev: Invalid version string "^2.0.x-dev"

[UPDATE]

The following issue raised for composer 1.10.11 and 1.10.12, please run:

composer self-update

to get 1.10.13 or higher - @kylekatarnls


I’m following the install instructions for Laravel valet found here

The below step fails…

Install Valet with Composer via composer global require laravel/valet. Make sure the ~/.composer/vendor/bin directory is in your system's "PATH".

with the following error…

  Could not load package kylekatarnls/update-helper in http://repo.packagist.org: [UnexpectedValueException] Could not parse version constraint ^2.0.x-dev: Invalid version string "^2.0.x-dev"

Any idea how I can resolve this?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 6
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Seems to be issue with newest version of Composer 1.10.11 (2020-09-08 16:53:44). Downgrade Composer until the maintainer fixes the issue:

composer self-update 1.10.10

It was bug in Composer, already fixed, upgrade Composer to 1.10.13, https://github.com/composer/composer/issues/9191.

Upgrade to 1.10.11 helped.

For everyone here, until a fix from composer, please use composer <= 1.10.10 (neither 2+ nor 1.10.11+)