Laravel 5:工匠工作台:无法找到照明/支持

时间:2014-10-30 10:28:08

标签: workbench packagist laravel-5

我正在尝试使用php artisan workbench vendor/packagename创建一个新包,但是当我运行它时,我得到了

Package workbench created!
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
    - The requested package illuminate/support could not be found in any version, there may be a typo in the package name.

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 <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

illuminate/support下有laravel/framework/src/Illuminate/Support,所以不太确定可能导致它的原因。

生成的composer.json文件需要以下

"require": {
    "php": ">=5.4.0",
    "illuminate/support": "5.0.*"
},

不确定illuminate/support版本5.0是否导致问题?

问题已解决

我必须在半生成的包中手动修改minimum-stabilitystabledev,然后运行composer update来完成它。

1 个答案:

答案 0 :(得分:0)

由于Laravel 5仍处于开发阶段,请将您的composer.json称为“最小稳定性”,从stable变为“dev”:

"minimum-stability": "dev"

然后在命令行运行

composer update