Skip to content

[UnexpectedValueException] Could not parse version constraint 4.x.x #55

@fabioaccetta

Description

@fabioaccetta

When I try to install any version of qs (npm package), for example dev-master:

{
   "require": {
      "npm-asset/qs": "dev-master"
   }
}

I always get this error running composer.phar update -vvv (both with or without --no-dev):

[...]
Downloading https://registry.npmjs.org/qs
Downloading https://api.github.com/repos/hapijs/qs
Downloading https://api.github.com/repos/hapijs/qs/contents/package.json?ref=master
Downloading https://api.github.com/repos/hapijs/qs/commits/master
Downloading https://api.github.com/repos/hapijs/qs/tags?per_page=100
Downloading https://api.github.com/repos/hapijs/qs/git/refs/heads?per_page=100

  [UnexpectedValueException]                                                
  Could not parse version constraint 4.x.x: Invalid version string "4.x.x"

Looking into package.json of the package (here), I see this:

{
   "devDependencies": {
      "lab": "4.x.x"
   },
}

How can I solve this?
Thanks

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions