【问题标题】:Laravel 5 : artisan workbench : illuminate/support could not be foundLaravel 5:工匠工作台:找不到照明/支撑
【发布时间】:2014-10-30 10:28:07
【问题描述】:

我正在尝试使用 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-stabilitystable 修改为dev,然后运行composer update 来完成它。

【问题讨论】:

  • 请将您的解决方案作为答案并将其标记为已接受。

标签: workbench packagist laravel-5


【解决方案1】:

由于 Laravel 5 仍在开发中,请将名为“minimum-stability”的 composer.json 从 stable 更改为“dev”:

"minimum-stability": "dev"

然后在你的命令行运行

composer update

【讨论】:

    猜你喜欢
    • 2014-03-19
    • 1970-01-01
    • 2016-04-03
    • 2021-08-01
    • 2016-04-04
    • 1970-01-01
    • 2017-11-12
    • 2016-06-11
    • 2015-11-25
    相关资源
    最近更新 更多