Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 由于依赖关系,无法安装/路由_Php_Laravel_Composer Php_Laravel Routing_Lumen - Fatal编程技术网

Php 由于依赖关系,无法安装/路由

Php 由于依赖关系,无法安装/路由,php,laravel,composer-php,laravel-routing,lumen,Php,Laravel,Composer Php,Laravel Routing,Lumen,我正在尝试将照明/布线添加到Lumen项目中,但每当我尝试通过composer安装它时,都会引发以下错误: $ composer require illuminate/routing Using version ^5.1 for illuminate/routing ./composer.json has been updated Loading composer repositories with package information Updating dependencies (inclu

我正在尝试将照明/布线添加到Lumen项目中,但每当我尝试通过composer安装它时,都会引发以下错误:

$ composer require illuminate/routing Using version ^5.1 for illuminate/routing ./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
    - The requested package laravel/lumen-framework == 5.0.10.0 could not be found.   Problem 2
    - Installation request for illuminate/contracts == 5.0.33.0 -> satisfiable by illuminate/contracts[v5.0.33].
    - illuminate/routing v5.1.1 requires illuminate/contracts 5.1.* -> satisfiable by illuminate/contracts[v5.1.1].
    - illuminate/routing v5.1.2 requires illuminate/contracts 5.1.* -> satisfiable by illuminate/contracts[v5.1.1].
    - Conclusion: don't install illuminate/contracts v5.1.1
    - Installation request for illuminate/routing ^5.1 -> satisfiable by illuminate/routing[v5.1.1, v5.1.2].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

你知道我应该做什么吗?

composer.json
中删除:

"config": {
    "minimum-stability": "dev",
    "prefer-stable": true
}
实际上,您不需要它做任何事情,因为您不依赖任何不稳定的包(这就是它们的用途)


当我这样做时,删除
/vendor
目录并运行
composer install
,软件包就可以正确安装了。

也遇到了同样的问题。你解决了吗?
"config": {
    "minimum-stability": "dev",
    "prefer-stable": true
}