作曲家代码点火器甚至"nothing to install or update"将库添加到作曲家 JSON 中



我已经很久没有使用codeIgniter作为我的框架了。 我将在代码点火器中使用作曲家安装库,

我想安装的库是混合身份验证,用于使用代码点火器进行社交登录。

我已经在我的作曲家中添加了"hybridauth/hybridauth": "~3.0".json

这是我的整个composer.json

{
"description": "The CodeIgniter framework",
"name": "codeigniter/framework",
"type": "project",
"homepage": "https://codeigniter.com",
"license": "MIT",
"support": {
"forum": "http://forum.codeigniter.com/",
"wiki": "https://github.com/bcit-ci/CodeIgniter/wiki",
"slack": "https://codeigniterchat.slack.com",
"source": "https://github.com/bcit-ci/CodeIgniter"
},
"require": {
"php": ">=5.3.7",
"hybridauth/hybridauth": "~3.0"
},
"suggest": {
"paragonie/random_compat": "Provides better randomness in PHP 5.x"
},
"require-dev": {
"mikey179/vfsStream": "1.1.*",
"phpunit/phpunit": "4.* || 5.*"
}
}

然后,当我尝试使用此命令composer install安装时,没有任何要安装的内容。该命令的输出如下所示:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in 
composer.json. You may be getting outdated dependencies. Run update to update 
them.
Nothing to install or update
Generating autoload files

当我尝试composer update时,输出是这样的:

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
- The requested package hybridauth/hybridauth master is satisfiable by 
hybridauth/hybridauth[dev-master] but these conflict with your requirements 
or minimum-stability.

感谢您的帮助。

您可以编辑

"hybridauth/hybridauth": "~3.0"

"hybridauth/hybridauth": "*"

然后,composer update运行此命令。

它现在解决了我的问题。

最新更新