问题描述
我试图通过命令composer global require "laravel/lumen-installer"
安装Lumen,但是在终端上抛出以下错误.
I'm trying to install Lumen through the command composer global require "laravel/lumen-installer"
but throws the following error on terminal.
Changed current directory to /home/lykos/.config/composer
Using version ^1.0 for laravel/lumen-installer
./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
- Conclusion: don't install laravel/lumen-installer v1.0.2
- Conclusion: don't install laravel/lumen-installer v1.0.1
- Installation request for symfony/console (locked at v4.0.3) -> satisfiable by symfony/console[v4.0.3].
- Conclusion: remove guzzlehttp/guzzle 6.3.0
- Installation request for laravel/lumen-installer ^1.0 -> satisfiable by laravel/lumen-installer[v1.0.0, v1.0.1, v1.0.2].
- Conclusion: don't install guzzlehttp/guzzle 6.3.0
- laravel/lumen-installer v1.0.0 requires guzzlehttp/guzzle ~4.0|~5.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1, 5.3.2].
- Can only install one of: guzzlehttp/guzzle[4.0.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.0.1, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.0.2, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.1, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.2, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.3, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.4, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.5, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.6, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.7, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.1.8, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.2.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.2.1, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.2.2, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.2.3, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[4.2.4, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.0.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.0.1, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.0.2, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.0.3, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.1.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.2.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.3.0, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.3.1, 6.3.0].
- Can only install one of: guzzlehttp/guzzle[5.3.2, 6.3.0].
- Installation request for guzzlehttp/guzzle (locked at 6.3.0) -> satisfiable by guzzlehttp/guzzle[6.3.0].
Installation failed, reverting ./composer.json to its original content.
在Google搜索中,我试图这样做rm -R ~/.composer/vendor/guzzlehttp
From a google search I tried to do this rm -R ~/.composer/vendor/guzzlehttp
但是由于没有这样的目录而抛出错误
but throws an error as there's no such a directory
我的~/.config/composer/composer.json
文件看起来像这样
{
"require": {
"laravel/installer": "^1.5"
}
}
有什么想法可以解决此问题吗?
Any ideas how to fix this issue?
推荐答案
Taylor在v1.0.3中修复了此问题,但尚未对其进行标记,因此您可以安装dev-master以获得更新的版本:composer global require laravel/lumen-installer:dev-master
Taylor fixed this in v1.0.3, but it hasn't been tagged, so you can install dev-master to get the updated version:composer global require laravel/lumen-installer:dev-master
这篇关于laravel/lumen-installer安装失败:guzzlehttp/guzzle锁定在6.3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!