thinkofacard
thinkofacard

Reputation: 501

Composer error [UnexpectedValueException]

I tried composer install and got the following error. Anyone know what it means?

[UnexpectedValueException]
Could not parse version constraint Needed: Invalid version string "Needed"

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...

All my composer.json has in it is this:

{
  "require" : {
    "facebook/php-sdk-v4" : "4.0.*",
    "league/oauth2-client": "Needed for Gmail's XOAUTH2 authentication system"
  }
}

Upvotes: 2

Views: 884

Answers (1)

Andreas
Andreas

Reputation: 5335

Could not parse version constraint Needed: Invalid version string "Needed"

You need a package version number and not the string 'Needed for Gmail's XOAUTH2 authentication system'.

For example:

{
  "require" : {
    "facebook/php-sdk-v4" : "4.0.*",
    "league/oauth2-client": "1.1.0"
  }
}

Upvotes: 0

Related Questions