0

我正在尝试创建一个新包,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-stabilityfromstable到,然后运行以完成它。devcomposer update

4

1 回答 1

0

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

"minimum-stability": "dev"

然后在你的命令行运行

composer update
于 2014-11-01T11:33:51.680 回答