,而試圖通過作曲家在Ubuntu上安裝聯賽/ OAuth2用戶的客戶端與最新的捲曲和OpenSSL庫與最新的PHP版本相結合,我得到一個錯誤安裝聯賽/ OAuth2用戶的客戶端:如何通過作曲家
$ composer require league/oauth2-client
Using version ^0.12.1 for league/oauth2-client
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for league/oauth2-client 1.0.x-dev -> satisfiable by league/oauth2-client[1.0.x-dev].
- Can only install one of: league/oauth2-client[0.12.1, 1.0.x-dev].
- Installation request for league/oauth2-client ^0.12.1 -> satisfiable by league/oauth2-client[0.12.1].
Installation failed, reverting ./composer.json to its original content.
到目前爲止找不到任何提示。提前感謝您的支持!
composer.json
$ cat composer.json
{
"name": "league/oauth2-client",
"description": "OAuth 2.0 Client Library",
"license": "MIT",
"require": {
"php": ">=5.5.0",
"ext-curl": "*",
"ircmaxell/random-lib": "~1.1",
"guzzlehttp/guzzle": "~6.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"mockery/mockery": "~0.9",
"squizlabs/php_codesniffer": "~2.0",
"satooshi/php-coveralls": "0.6.*",
"jakub-onderka/php-parallel-lint": "0.8.*"
},
"keywords": [
"oauth",
"oauth2",
"authorization",
"authentication",
"idp",
"identity",
"sso",
"single sign on"
],
"authors": [
{
"name": "Alex Bilbie",
"email": "[email protected]",
"homepage": "http://www.alexbilbie.com",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"League\\OAuth2\\Client\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"League\\OAuth2\\Client\\Test\\": "test/src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
}
}
你是什麼composer.json的內容? – TheGeorgeous
這是一個標準安裝,剛剛檢查出git repo – merlin